Skip to content

Commit

Permalink
Fix release upload URL in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arshajii committed Aug 23, 2024
1 parent 96e0a1a commit 6df1ea7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ on:
- develop

jobs:
release:
create_release:
name: Create GitHub Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
permissions:
contents: write
steps:
Expand All @@ -26,7 +28,9 @@ jobs:
manylinux:
runs-on: ubuntu-latest
name: Codon CI (manylinux)
needs: [ release ]
needs: create_release
permissions:
content: write
steps:
- uses: actions/checkout@v4

Expand All @@ -46,7 +50,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./codon-linux-x86_64.tar.gz
asset_name: codon-linux-x86_64.tar.gz
asset_content_type: application/gzip
Expand All @@ -65,8 +69,9 @@ jobs:
- macos-12
runs-on: ${{ matrix.os }}
name: Codon CI
needs: [ release ]
needs: create_release
permissions:
content: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -159,7 +164,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./codon-darwin-x86_64.tar.gz
asset_name: codon-darwin-x86_64.tar.gz
asset_content_type: application/gzip
Expand Down

0 comments on commit 6df1ea7

Please sign in to comment.