Skip to content

Commit

Permalink
.github/workflows/dist.yml: Upload PyPI sdists also as GH Release Assets
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Aug 16, 2024
1 parent e042294 commit 226a916
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,6 @@ jobs:
upstream
name: release_dist

release:

needs: release_dist
runs-on: ubuntu-latest
if: (success() || failure()) && github.repository == 'sagemath/sage' && startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc')
steps:
- uses: actions/download-artifact@v4
with:
name: release_dist
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
dist/*
upstream/*
permissions:
contents: write

sdists_for_pypi:

runs-on: ubuntu-latest
Expand Down Expand Up @@ -124,6 +106,27 @@ jobs:
verbose: true
if: env.CAN_DEPLOY == 'true'

release:

needs: [release_dist, sdists_for_pypi]
runs-on: ubuntu-latest
if: (success() || failure()) && github.repository == 'sagemath/sage' && startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc')
steps:
- uses: actions/download-artifact@v4
with:
name: release_dist
- uses: actions/download-artifact@v4
with:
name: dist
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
dist/*
upstream/*
permissions:
contents: write

noarch_wheels_for_pypi:

runs-on: ubuntu-latest
Expand Down

0 comments on commit 226a916

Please sign in to comment.