Skip to content

Commit

Permalink
Fixes for publishing action (pypa/gh-action-pypi-publish@release/v1 a…
Browse files Browse the repository at this point in the history
…nd ubuntu-latest)
  • Loading branch information
hpenne committed Apr 21, 2023
1 parent 186bc5c commit 308fce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
Expand All @@ -28,12 +28,12 @@ jobs:
--outdir dist/
.
- name: Publish distribution to Test PyPI when master changes
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI for tagged releases
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 308fce0

Please sign in to comment.