Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WhenGryphonsFly committed Aug 18, 2023
1 parent 222eca8 commit 1a39fd3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a39fd3

Please sign in to comment.