Skip to content

Commit

Permalink
build: update runner, python, and pypi-publish version in publish wor…
Browse files Browse the repository at this point in the history
…kflow
  • Loading branch information
mammothb authored Aug 31, 2024
1 parent a4cc77b commit 0190c17
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
jobs:
publish-test-pypi:
name: Build and publish to TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4.5.0
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: "3.10"

- name: Build
run: |
Expand All @@ -25,15 +25,15 @@ jobs:
python -m build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 0190c17

Please sign in to comment.