From 8d37b019630cd37058cac09ff20ef9bd0871aeb0 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Mon, 24 Oct 2022 15:22:10 -0700 Subject: [PATCH] grab nintendont artifacts on release --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0a0602..e68c769 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,3 +35,24 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} + - name: Download latest Nintendont artifacts + uses: dawidd6/action-download-artifact@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + workflow: build.yml + branch: slippi + repo: project-slippi/Nintendont + - name: Zip Release Artifact + run: | + mv release*/apps ./ + mv loader*/* ./ + zip -r "Slippi-Nintendont-${{ env.VERSION }}.zip" apps/ + rm -rf release* loader* apps/ + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./* + tag: ${{ github.ref }} + overwrite: true + file_glob: true