Skip to content

Commit

Permalink
fix: try just downloading all of the artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tangowithfoxtrot committed Nov 17, 2024
1 parent 616fb55 commit 4fc5aca
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/release-rizzybox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ on:
jobs:
create_release:
runs-on: ubuntu-22.04
strategy:
matrix:
artifact_name:
[
"rizzybox-riscv64gc-unknown-linux-gnu",
"rizzybox-aarch64-unknown-linux-musl",
"rizzybox-x86_64-unknown-linux-musl",
"rizzybox-aarch64-apple-darwin",
"rizzybox-x86_64-apple-darwin",
]

steps:
- name: Checkout code
Expand All @@ -39,15 +29,16 @@ jobs:
run_id=$(gh run list --workflow="Build Rizzybox" --branch=main --status=success --json databaseId --jq '.[0].databaseId')
echo "run_id=$run_id" >> $GITHUB_ENV
- name: Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ matrix.artifact_name }}
path: ./artifacts
run-id: ${{ env.run_id }}
- name: Download artifacts
env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
mkdir -p ./artifacts
gh run download ${{ env.run_id }} --dir ./artifacts
ls -l ./artifacts/rizzybox-*.tar.gz || { echo "No artifacts found"; exit 1; }
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
gh release create ${{ github.ref_name }} ./artifacts/rizzybox-*.tar.gz --title "Release ${{ github.ref_name }}" --prerelease
gh release create ${{ github.ref_name }} ./artifacts/rizzybox-*.tar.gz/* --title "Release ${{ github.ref_name }}" --prerelease

0 comments on commit 4fc5aca

Please sign in to comment.