File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 - ' v*.*.*'
99
1010jobs :
11- deploy :
11+ build :
1212 runs-on : ubuntu-latest
13-
14- environment : pypi
15- permissions :
16- # This permission is needed for private repositories.
17- contents : read
18- # IMPORTANT: this permission is mandatory for trusted publishing
19- id-token : write
20-
2113 steps :
22- - uses : actions/checkout@v6
14+ - uses : actions/checkout@v4
2315
24- - name : Set up Python
25- uses : actions/setup-python@v6
16+ - uses : actions/setup-python@v5
2617 with :
2718 python-version : ' 3.11'
28- cache : ' pip'
2919
30- - name : Install dependencies
20+ - name : Install Poetry
3121 run : |
32- python -m pip install --upgrade pip
33- pip install hatch
22+ pip install poetry==2.3.1
23+ poetry --version
3424
3525 - name : Build package
36- run : hatch build
26+ run : |
27+ poetry install --only-root
28+ poetry build
29+
30+ - uses : actions/upload-artifact@v4
31+ with :
32+ name : dist
33+ path : ./dist
3734
38- - name : Publish on PyPI
35+ pypi-publish :
36+ needs : build
37+ name : Upload release to PyPI
38+ runs-on : ubuntu-latest
39+ environment :
40+ name : pypi
41+ url : https://pypi.org/project/vban-cmd/
42+ permissions :
43+ id-token : write
44+ steps :
45+ - uses : actions/download-artifact@v4
46+ with :
47+ name : dist
48+ path : ./dist
49+
50+ - name : Publish package distributions to PyPI
3951 uses : pypa/gh-action-pypi-publish@release/v1
52+ with :
53+ packages-dir : ./dist
You can’t perform that action at this time.
0 commit comments