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
pull/141/head^2
probonopd 3 years ago committed by GitHub
parent 469ef79fa5
commit c5343931d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .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: |

Loading…
Cancel
Save