Skip to content

Commit

Permalink
chore(GHA): creating the GH release actually
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler authored Feb 10, 2025
1 parent d84c0dc commit 84f7e64
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# get the latest commit hash in the short form
COMMIT=$(git rev-parse --short HEAD)
# get the latest commit date in the form of YYYYmmdd
DATE=$(git log -1 --format=%cd --date=format:'%y%m%d')
DATE=$(git log -1 --format=%cd --date=format:'%y%m%d%H%M')
echo "version=${DATE}-${COMMIT}" >> "$GITHUB_OUTPUT"
build:
Expand Down Expand Up @@ -89,7 +89,15 @@ jobs:
env:
VERSION: ${{ needs.build.outputs.version }}
run: |
echo "version: '$VERSION'"
echo "version: '$VERSION'"${{ needs.build.outputs.version }}
- name: Release
uses: softprops/action-gh-release@v2
with:
make_latest: true
draft: false
prerelease: false
tag_name: ${{ needs.build.outputs.version }}
files: dist/*

# publish:
# needs: [build]
Expand Down

0 comments on commit 84f7e64

Please sign in to comment.