From 625a25094895f698fa58d148b60843267ce877ca Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 22 Apr 2022 20:26:52 +0200 Subject: [PATCH] Keep all build artifacts Also those on the master branch https://github.com/probonopd/MiniDexed/issues/140#issuecomment-1106752484 --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9dd8378..fb3b17a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,11 +69,11 @@ jobs: cd sdcard cp ../kernels/* . || true zip -r ../MiniDexed_$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d).zip * + echo "artifactName=MiniDexed_$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d).zip" >> $GITHUB_ENV - uses: actions/upload-artifact@v3 - if: ${{ github.ref != 'refs/heads/main' }} with: - name: Upload to GitHub Artifacts (when not building from main branch) - path: ./MiniDexed*.zip + name: ${{ env.artifactName }} # Exported above + path: ./sdcard/* - name: Upload to GitHub Releases (only when building from main branch) if: ${{ github.ref == 'refs/heads/main' }} run: |