File tree Expand file tree Collapse file tree 5 files changed +101
-1366
lines changed Expand file tree Collapse file tree 5 files changed +101
-1366
lines changed Original file line number Diff line number Diff line change 55 branches : [ main, develop ]
66 pull_request :
77 branches : [ main, develop ]
8- workflow_call :
98
109jobs :
1110 test :
5857
5958 integration-test :
6059 runs-on : ubuntu-latest
61- if : github.event_name == 'pull_request' || github.event_name == 'workflow_call'
60+ if : github.event_name == 'pull_request'
6261
6362 steps :
6463 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- workflow_dispatch :
5- inputs :
6- level :
7- description : ' Version level to bump'
8- required : true
9- default : ' patch'
10- type : choice
11- options :
12- - patch
13- - minor
14- - major
4+ release :
5+ types : [created]
156
167jobs :
17- ci :
18- uses : ./.github/workflows/ci.yml
19- secrets : inherit
20-
21- release :
8+ deploy :
229 runs-on : ubuntu-latest
23- needs : ci
24- concurrency : release
25- permissions :
26- id-token : write
27- contents : write
28-
10+
2911 steps :
3012 - uses : actions/checkout@v4
31- with :
32- fetch-depth : 0
33- token : ${{ secrets.GITHUB_TOKEN }}
3413
35- - name : Install Pixi
36- uses :
prefix-dev /setup-[email protected] 14+ - name : Set up Python
15+ uses : actions /setup-python@v5
3716 with :
38- pixi -version : v0.29.0
17+ python -version : ' 3.12 '
3918
40- - name : Semantic Release
41- run : pixi run python -m semantic_release version --${{ inputs.level }}
42- env :
43- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19+ - name : Install dependencies
20+ run : |
21+ python -m pip install --upgrade pip
22+ pip install -e ".[dev]"
23+
24+ - name : Build package
25+ run : python -m build
4426
4527 - name : Publish to PyPI
46- uses : pypa/gh-action-pypi-publish@release/v1
47- if : github.ref == 'refs/heads/main'
28+ env :
29+ TWINE_USERNAME : __token__
30+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
31+ run : twine upload dist/*
You can’t perform that action at this time.
0 commit comments