File tree Expand file tree Collapse file tree 1 file changed +8
-37
lines changed
Expand file tree Collapse file tree 1 file changed +8
-37
lines changed Original file line number Diff line number Diff line change 1- name : Release
1+ name : Semantic Release
2+
23on :
34 workflow_dispatch :
45 inputs :
1112 - patch
1213 - minor
1314 - major
14- release :
15- types : [published]
1615
1716jobs :
1817 release :
@@ -26,39 +25,11 @@ jobs:
2625 - uses : actions/checkout@v4
2726 with :
2827 fetch-depth : 0
29- token : ${{ secrets.GITHUB_TOKEN }}
30- ref : ${{ github.event.release.tag_name || github.ref }}
31- fetch-tags : true
32-
33- - name : Install uv
34- run : |
35- curl -LsSf https://astral.sh/uv/install.sh | sh
36- echo "$HOME/.cargo/bin" >> $GITHUB_PATH
3728
38- - name : Python Setup
39- uses : actions/setup- python@v4
29+ - name : Python Semantic Release
30+ uses : python-semantic-release/ python-semantic-release@master
4031 with :
41- python-version : " 3.10"
42-
43- - name : Install dependencies
44- run : |
45- uv venv
46- source .venv/bin/activate
47- uv pip install ".[dev]"
48-
49- - name : Debug Info
50- run : |
51- source .venv/bin/activate
52- git status
53- git branch
54- git tag
55- echo "Current ref: ${{ github.ref }}"
56- echo "Release tag: ${{ github.event.release.tag_name }}"
57-
58- - name : Release
59- env :
60- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
62- run : |
63- source .venv/bin/activate
64- semantic-release publish
32+ github_token : ${{ secrets.GITHUB_TOKEN }}
33+ pypi_token : ${{ secrets.PYPI_TOKEN }}
34+ git_committer_name : github-actions
35+ git_committer_email :
[email protected]
You can’t perform that action at this time.
0 commit comments