Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change release build artifact file name #533

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change release build artifact name to show version
  • Loading branch information
buberdds committed Jun 14, 2023
commit 95622ef06b0bb714b6ff9ef3cdc68221576ac3ed
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