Skip to content

Commit 1fe1f2b

Browse files
committed
Build configuration
1 parent 539b875 commit 1fe1f2b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ on:
88

99
jobs:
1010
build-and-publish:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
12+
environment: release
13+
permissions:
14+
id-token: write
1215
steps:
13-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1417
- name: Install Poetry
1518
run: pipx install poetry
1619
- name: Set up Python
17-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
1821
with:
1922
python-version: 3.12
2023
- name: Verify versioning
@@ -26,11 +29,6 @@ jobs:
2629
run: poetry run pytest
2730
- name: Build packages
2831
run: poetry build
29-
- name: Configure Poetry
30-
run: |
31-
poetry config repositories.testpypi https://test.pypi.org/legacy/
32-
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
33-
poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
3432
- name: Publish to test PyPI
3533
if: ${{ github.event_name == 'push' }}
3634
run: poetry publish -r testpypi

0 commit comments

Comments
 (0)