Skip to content

Commit

Permalink
Don't overwrite artifact on each job
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Apr 27, 2024
1 parent 5d9730d commit 582ae9b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,11 @@ jobs:
venv/bin/python -c 'import cramjam' || venv/bin/cramjam-cli --help
- name: Upload wheels
uses: actions/upload-artifact@v4
if: ${{ ( startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') ) }}
uses: actions/upload-artifact@v3
# 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 @@ -342,14 +341,14 @@ jobs:
- name: Build sdist cramjam-cli
run: python -m build --sdist cramjam-cli/ -o ./dist
- name: Upload sdists
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: dist
path: dist

pypi-publish:
name: Upload ${{ matrix.package }} release to PyPI
if: startsWith(github.ref, 'refs/tags/')
# if: startsWith(github.ref, 'refs/tags/')
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -381,8 +380,8 @@ jobs:
ls -l
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: artifacts-${{ matrix.package }}/
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# skip-existing: true
# packages-dir: artifacts-${{ matrix.package }}/

0 comments on commit 582ae9b

Please sign in to comment.