From c5343931d0c2ac64a9dfb02a7e13e1b2f2fbf5ce Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 22 Apr 2022 20:52:43 +0200 Subject: [PATCH] Keep all build artifacts for 90 days (#142) * Keep all build artifacts Also those on the master branch https://github.com/probonopd/MiniDexed/issues/140#issuecomment-1106752484 * Include git hash in filename --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9dd8378..c11615b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,12 +68,12 @@ jobs: echo "usbspeed=full" > sdcard/cmdline.txt cd sdcard cp ../kernels/* . || true - zip -r ../MiniDexed_$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d).zip * + zip -r ../MiniDexed_$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d)-$(git rev-parse --short HEAD).zip * + echo "artifactName=MiniDexed_$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d)-$(git rev-parse --short HEAD).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: |