From 82536287e6d943bfbfff0dd16584d053e49c87e4 Mon Sep 17 00:00:00 2001 From: SeongChan Lee Date: Mon, 11 Nov 2019 23:43:53 +0900 Subject: [PATCH] Update build task to follow the release process --- .github/workflows/build.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdca317f19..e2cf9d6094 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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