Skip to content

Commit

Permalink
Try release again
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Jun 24, 2024
1 parent 52ac9e4 commit 98b67fc
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ on:
workflows: [Build_Wheels]
branches: [main]
types: [completed] # This ensures it triggers only after the workflow completes
workflow_dispatch:

permissions:
contents: read

jobs:
check_wheels:
pypi:
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
id-token: write
steps:
- name: Get run ID of "Build_Wheels" workflow
id: get-run-id
Expand All @@ -34,24 +38,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: dist # Match name used in build_wheels.yml upload artifact step
path: dist
github-token: ${{ github.token }}
repository: ${{ github.repository }}
run-id: ${{ steps.get-run-id.outputs.run-id }}

- name: Show downloaded files
run: ls -la

# PyPI on release
pypi:
needs: [check_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 98b67fc

Please sign in to comment.