Skip to content

Commit

Permalink
Change release build artifact name to show version
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Jun 14, 2023
1 parent 9df15ad commit 95622ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/533.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change release build artifact name to show version instead of commit hash
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,18 @@ 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 }}
- name: Release
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:
Expand Down

0 comments on commit 95622ef

Please sign in to comment.