From 95622ef06b0bb714b6ff9ef3cdc68221576ac3ed Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Wed, 14 Jun 2023 12:53:08 +0200 Subject: [PATCH] Change release build artifact name to show version --- .changelog/533.internal.md | 1 + .github/workflows/release.yml | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .changelog/533.internal.md diff --git a/.changelog/533.internal.md b/.changelog/533.internal.md new file mode 100644 index 000000000..9eadcc5ed --- /dev/null +++ b/.changelog/533.internal.md @@ -0,0 +1 @@ +Change release build artifact name to show version instead of commit hash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index adfc568e4..5e5e24d6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,11 +37,10 @@ jobs: # and use short SHA of the commit for file name. run: | echo "VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')" >> "$GITHUB_OUTPUT" - echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Create zip file run: | cd build/ - zip -r ../oasis-explorer-${{ steps.vars.outputs.SHORT_SHA }}.zip . + zip -r ../oasis-explorer-${{ steps.vars.outputs.VERSION }}.zip . - name: Parse CHANGELOG.md file and extract changes for the given version run: | node ./internals/scripts/version-changelog.js ${{ steps.vars.outputs.VERSION }} @@ -49,7 +48,7 @@ jobs: uses: softprops/action-gh-release@v1 with: files: | - oasis-explorer-${{ steps.vars.outputs.SHORT_SHA }}.zip + oasis-explorer-${{ steps.vars.outputs.VERSION }}.zip name: Oasis Explorer ${{ steps.vars.outputs.VERSION }} body_path: ${{ github.workspace }}/CHANGELOG_SUMMARY.md env: