Skip to content

Commit

Permalink
Merge pull request #149 from mdsol/fix/trusted_publisher
Browse files Browse the repository at this point in the history
Migrate to trusted platform publishing
  • Loading branch information
glow-mdsol authored Feb 4, 2025
2 parents b2f16f0 + 89ca86c commit 9b38d72
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,13 @@ on:
- created

jobs:
test-publish:
name: Test Publish
runs-on:
ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
poetry-version: [ "1.4.2" ]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Build Project
run: poetry build
- name: Upload release to PyPI Test
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
publish:
needs: test-publish
name: Publish to PyPI
runs-on:
ubuntu-latest
environment: pypi
permissions:
id-token: write
strategy:
fail-fast: false
matrix:
Expand All @@ -55,5 +31,3 @@ jobs:
run: poetry build
- name: Upload release to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 9b38d72

Please sign in to comment.