Skip to content

Commit

Permalink
updates upload action
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Feb 1, 2025
1 parent fb76af6 commit 0140506
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux }}
path: dist

build_sdist:
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-sdist
path: dist

build_none:
Expand All @@ -115,7 +115,7 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-any
path: dist


Expand All @@ -133,8 +133,9 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
pattern: dist*
path: dist
merge-multiple: true

# - name: Install Poetry
# run: |
Expand All @@ -153,15 +154,15 @@ jobs:
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Create Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "dist/*"
# token: ${{ secrets.GITHUB_TOKEN }}
# draft: false
# prerelease: steps.check-version.outputs.prerelease == 'true'
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

# - name: Publish to PyPI
# shell: bash
Expand Down

0 comments on commit 0140506

Please sign in to comment.