Skip to content

Commit

Permalink
Update build task to follow the release process
Browse files Browse the repository at this point in the history
  • Loading branch information
foriequal0 committed Nov 18, 2019
1 parent 69da38c commit 0ab8343
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ jobs:
- name: Archive
working-directory: target/release
run: |
echo ${{github.sha}} ${{github.ref}} | tee git-ref
shasum -a 256 codechain | tee sha256sums
mkdir codechain-${{matrix.os}}-${{github.sha}}
mv codechain git-ref sha256sums codechain-${{matrix.os}}-${{github.sha}}
mkdir artifacts
echo ${{github.sha}} ${{github.ref}} | tee artifacts/git-ref
shasum -a 256 codechain | tee artifacts/sha256sums
CODECHAIN_VERSION="$(./codechain --version | cut -d ' ' -f 2)"
tar cvfz artifacts/codechain-${CODECHAIN_VERSION}-$(uname -m)-$(echo $(uname) | tr '[:upper:]' '[:lower:]').tar.gz codechain
- uses: actions/upload-artifact@v1
with:
name: codechain-${{matrix.os}}-${{github.sha}}
path: target/release/codechain-${{matrix.os}}-${{github.sha}}
name: codechain-${{ matrix.os }}
path: target/release/artifacts

0 comments on commit 0ab8343

Please sign in to comment.