mirror of https://github.com/exaloop/codon.git
Fix release upload URL in CI
parent
96e0a1af74
commit
6df1ea7b46
|
@ -12,9 +12,11 @@ on:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
create_release:
|
||||||
name: Create GitHub Release
|
name: Create GitHub Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
@ -26,7 +28,9 @@ jobs:
|
||||||
manylinux:
|
manylinux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Codon CI (manylinux)
|
name: Codon CI (manylinux)
|
||||||
needs: [ release ]
|
needs: create_release
|
||||||
|
permissions:
|
||||||
|
content: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -46,7 +50,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
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_path: ./codon-linux-x86_64.tar.gz
|
||||||
asset_name: codon-linux-x86_64.tar.gz
|
asset_name: codon-linux-x86_64.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
@ -65,8 +69,9 @@ jobs:
|
||||||
- macos-12
|
- macos-12
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: Codon CI
|
name: Codon CI
|
||||||
needs: [ release ]
|
needs: create_release
|
||||||
permissions:
|
permissions:
|
||||||
|
content: write
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -159,7 +164,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
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_path: ./codon-darwin-x86_64.tar.gz
|
||||||
asset_name: codon-darwin-x86_64.tar.gz
|
asset_name: codon-darwin-x86_64.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|
Loading…
Reference in New Issue