Skip to content

Commit 36b0b83

Browse files
authored
Update publishing workflow (#57)
* Update publishing workflow * Dependencies in requirements.txt instead of .in
1 parent c993329 commit 36b0b83

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
syntax-check:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- name: Python setup
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: '3.12'
1717
- name: Install test dependencies

.github/workflows/publish.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,23 @@ jobs:
77
publish:
88
if: github.event_name == 'release'
99
runs-on: ubuntu-latest
10+
11+
permissions:
12+
id-token: write
13+
1014
steps:
11-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
16+
1217
- name: Python setup
13-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1419
with:
15-
python-version: '3.10'
16-
- name: Install build, wheel and twine
17-
run: pip install build wheel twine
20+
python-version: '3.12'
21+
22+
- name: Install 'build' and 'wheel'
23+
run: pip install build wheel
24+
1825
- name: Build source tarball and binary
1926
run: python -m build --sdist --wheel --outdir dist/
27+
2028
- name: Publish to PyPI
21-
uses: pypa/gh-action-pypi-publish@master
22-
with:
23-
password: ${{ secrets.PYPI_API_TOKEN }}
29+
uses: pypa/gh-action-pypi-publish@release/v1.8

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
requirements = []
14-
with open(BASE_DIR / "requirements.in", "r") as req_file:
14+
with open(BASE_DIR / "requirements.txt", "r") as req_file:
1515
for item in req_file:
1616
requirements.append(item)
1717

0 commit comments

Comments
 (0)