From ccd77d6e39c89b04a1ed5538c8bf9857063fac76 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 13 Mar 2022 15:59:30 +0100 Subject: [PATCH] Upload artifactaUpload to GitHub Artifacts (when not building from main branch)s --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2404f75..113e57e 100644 --- a/.github/workflows/build.yml +++ b/.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 +