diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1e369a..8c62de0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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]