From f62d80dd93c4d7e4ebec5a15b93eb92e89f10fae Mon Sep 17 00:00:00 2001 From: relrelb Date: Sat, 3 Jun 2023 12:08:36 +0300 Subject: [PATCH] ci: Fix artifact download for AUR package `actions/download-artifact` cannot be used because only macOS artifacts are uploaded using `actions/upload-artifact`. Instead use `gh release download`, which mirrors `gh release upload`. --- .github/workflows/release_nightly.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 147e0986f..1d1e1585b 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -482,7 +482,7 @@ jobs: publish-aur-package: name: Publish AUR package - needs: build + needs: [create-nightly-release, build] runs-on: ubuntu-22.04 if: github.repository == 'ruffle-rs/ruffle' steps: @@ -500,16 +500,16 @@ jobs: with: format: YYYY.MM.DD - - name: Download Linux x86_64 binary - uses: actions/download-artifact@v3 - with: - name: linux-x86_64 + - name: Download package + run: gh release download "${{ needs.create-nightly-release.outputs.tag_name }}" --pattern "${{ needs.create-nightly-release.outputs.package_prefix }}-linux-x86_64.tar.gz" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Update PKGBUILD run: > sed -i ./PKGBUILD -e "s/@VERSION@/${{ steps.current_time_dots.outputs.formattedTime }}/" - -e "s/@SHA512SUM@/$(sha512sum ${{ needs.build.needs.create-nightly-release.outputs.package_prefix }}-linux-x86_64.tar.gz | cut -d' ' -f1)/" + -e "s/@SHA512SUM@/$(sha512sum ${{ needs.create-nightly-release.outputs.package_prefix }}-linux-x86_64.tar.gz | cut -d' ' -f1)/" - name: Publish AUR package uses: KSXGitHub/github-actions-deploy-aur@v2.7.0