Skip to content

Commit

Permalink
use short hash for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
JairusSW committed Oct 5, 2024
1 parent 4957f01 commit 1a973e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ jobs:
- name: Build tarballs
run: npm run pack

- name: Get commit hash
id: short-sha
run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV

- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.package-version.outputs.current-version }}-${{ github.sha }}
tag_name: v${{ steps.package-version.outputs.current-version }}-${{ env.SHORT_SHA }}
draft: ${{ env.draft }}
files: ./dist/*.tar.gz
prerelease: true
Expand Down

0 comments on commit 1a973e2

Please sign in to comment.