Upload artifactaUpload to GitHub Artifacts (when not building from main branch)s

pull/46/head
probonopd 2 years ago committed by GitHub
parent d40b4ebd37
commit ccd77d6e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/build.yml

@ -68,9 +68,15 @@ jobs:
cd sdcard
cp ../kernels/* . || true
zip -r ../MiniDexed_$GITHUB_RUN_NUMBER_$(date +%Y-%m-%d).zip *
- 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: Upload to GitHub Releases (only when building from main branch)
if: ${{ github.ref == 'refs/heads/main' }}
run: |
set -ex
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash ./upload.sh ./MiniDexed*.zip

Loading…
Cancel
Save