File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : release
2+
3+ # Only trigger on `main` when the CI workflow succeeds.
4+ on : workflow_dispatch
5+
6+ jobs :
7+ release :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : checkout
12+ uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+ ref : ${{ github.head_ref || github.ref_name }}
16+ token : ${{ secrets.GALILEO_AUTOMATION_GITHUB_TOKEN }}
17+
18+ - name : Python Semantic Release
19+ id : release
20+ uses : python-semantic-release/python-semantic-release@v9.21.0
21+ with :
22+ git_committer_name : galileo-automation
23+ git_committer_email : ci@rungalileo.io
24+ github_token : ${{ secrets.GALILEO_AUTOMATION_GITHUB_TOKEN }}
25+ ssh_public_signing_key : ${{ secrets.GALILEO_AUTOMATION_SSH_PUBLIC_KEY }}
26+ ssh_private_signing_key : ${{ secrets.GALILEO_AUTOMATION_SSH_PRIVATE_KEY }}
27+
28+ - name : Publish Package to PyPI
29+ # if: steps.release.outputs.released == 'true'
30+ uses : pypa/gh-action-pypi-publish@release/v1
31+ with :
32+ verbose : true
33+ print-hash : true
34+
35+ - name : Publish package distributions to GitHub Releases
36+ uses : python-semantic-release/upload-to-gh-release@main
37+ if : steps.release.outputs.released == 'true'
38+ with :
39+ github_token : ${{ secrets.GALILEO_AUTOMATION_GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments