diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 579822a2..8fe42dff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,21 +27,22 @@ jobs: run: sh build.sh # No point in running the following steps if we are not deploying + # See https://github.com/actions/runner/issues/1395 for why fromJSON() is needed - name: Install to temp dir - if: env.IS_DEPLOY + if: fromJSON(env.IS_DEPLOY) shell: bash run: | mkdir TEMPDIR sh install.sh TEMPDIR - name: Create release archive - if: env.IS_DEPLOY + if: fromJSON(env.IS_DEPLOY) shell: bash run: tar -C TEMPDIR/tools/agbcc -czf agbcc.tar.gz bin include lib - name: Upload archive uses: actions/upload-artifact@main - if: env.IS_DEPLOY + if: fromJSON(env.IS_DEPLOY) with: name: agbcc.tar.gz path: agbcc.tar.gz