Skip to content

Commit 63714bd

Browse files
committed
Update build task to follow the release process
1 parent 9deef2a commit 63714bd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ jobs:
2121
- name: Archive
2222
working-directory: target/release
2323
run: |
24-
echo ${{github.sha}} ${{github.ref}} | tee git-ref
25-
shasum -a 256 codechain | tee sha256sums
26-
mkdir codechain-${{matrix.os}}-${{github.sha}}
27-
mv codechain git-ref sha256sums codechain-${{matrix.os}}-${{github.sha}}
24+
mkdir artifacts
25+
echo ${{github.sha}} ${{github.ref}} | tee artifacts/git-ref
26+
shasum -a 256 codechain | tee artifacts/sha256sums
27+
CODECHAIN_VERSION="$(./codechain --version | cut -d ' ' -f 2)"
28+
tar cvfz artifacts/codechain-${CODECHAIN_VERSION}-$(uname -m)-$(echo $(uname) | tr '[:upper:]' '[:lower:]').tar.gz codechain
2829
- uses: actions/upload-artifact@v1
2930
with:
30-
name: codechain-${{matrix.os}}-${{github.sha}}
31-
path: target/release/codechain-${{matrix.os}}-${{github.sha}}
31+
name: codechain-${{ matrix.os }}
32+
path: target/release/artifacts

0 commit comments

Comments
 (0)