Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongsu-hong committed Feb 14, 2024
1 parent d02c45c commit 158074c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
pull-requests: write

env:
ARTIFACT_NAME: ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}-${{ github.ref_name }}.zip
REPO_NAME: ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}

name: artifact
runs-on: ubuntu-latest
Expand All @@ -39,14 +39,18 @@ jobs:
run: |
cargo generate-lockfile
make ci-build
mv wasm_codes.zip $ARTIFACT_NAME
sha256sum $ARTIFACT_NAME > $ARTIFACT_NAME.CHECKSUM
md5sum $ARTIFACT_NAME > $ARTIFACT_NAME.CHECKSUM.MD5
mv wasm_codes.zip ${{ env.ARTIFACT_NAME }}
sha256sum ${{ env.ARTIFACT_NAME }} > ${{ env.ARTIFACT_NAME }}.CHECKSUM
md5sum ${{ env.ARTIFACT_NAME }} > ${{ env.ARTIFACT_NAME }}.CHECKSUM.MD5
env:
ARTIFACT_NAME: ${{ env.REPO_NAME }}-${{ github.ref_name }}.zip

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
$ARTIFACT_NAME
$ARTIFACT_NAME.CHECKSUM
$ARTIFACT_NAME.CHECKSUM.MD5
${{ env.ARTIFACT_NAME }}
${{ env.ARTIFACT_NAME }}.CHECKSUM
${{ env.ARTIFACT_NAME }}.CHECKSUM.MD5
env:
ARTIFACT_NAME: ${{ env.REPO_NAME }}-${{ github.ref_name }}.zip

0 comments on commit 158074c

Please sign in to comment.