Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build task to follow the release process #1858

Merged
merged 2 commits into from
Nov 18, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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