Skip to content

Commit

Permalink
build: use released pypi publish github action and fix with
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Aug 9, 2023
1 parent 720f6b6 commit 93beb84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- miniforge-variant: Mambaforge
miniforge-version: 4.11.0-4
runs-on: ${{ matrix.os }}
permissions:
id-token: write

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -63,10 +65,8 @@ jobs:
twine check --strict dist/*
- name: publish to test pypi
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' # This step will only run on pushes
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
release:
name: create release
runs-on: ubuntu-latest

permissions:
id-token: write
strategy:
matrix:
python-versions: ["3.10"]
Expand Down Expand Up @@ -63,6 +64,4 @@ jobs:
- name: publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true

0 comments on commit 93beb84

Please sign in to comment.