Skip to content

Commit

Permalink
Fix upload/download-artifact all v4
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Sep 5, 2024
1 parent 94a6f9a commit 689dc9e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,12 @@ jobs:
venv/bin/python -c 'import cramjam'
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ ( startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') ) }}
with:
name: dist
path: dist
overwrite: true

build-sdist:
name: Build sdists
Expand All @@ -272,10 +273,11 @@ jobs:
python -m pip install build
python -m build --sdist -o ./dist
- name: Upload sdists
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
overwrite: true

pypi-publish:
name: Upload release to PyPI
Expand All @@ -290,7 +292,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: dist
- name: List artifacts
Expand All @@ -309,7 +311,7 @@ jobs:
needs: [build-test, build-sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: dist
- name: List artifacts
Expand Down

0 comments on commit 689dc9e

Please sign in to comment.