Skip to content

Commit

Permalink
Update actions to V4 in publish-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicapretto committed Dec 21, 2024
1 parent 51b5ff7 commit 3d959a9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
Expand All @@ -20,27 +20,27 @@ jobs:

- name: Install dependencies
run: python3 -m pip install --upgrade build

- name: Build
run: python3 -m build

- name: Upload source distribution artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact
path: dist/*

test:
name: Upload release to test PyPI
name: Upload release to test PyPI
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Download source distribution artifact
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- name: Set up Python
uses: actions/setup-python@v3
with:
Expand All @@ -54,7 +54,7 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: python3 -m twine upload --skip-existing --repository testpypi dist/*

- name: Test pip install from test.pypi
run: |
python -m venv venv-test-pypi
Expand All @@ -67,7 +67,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download source distribution artifact
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down

0 comments on commit 3d959a9

Please sign in to comment.