Skip to content

Commit

Permalink
ci: add human-readable version number
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonThormeyer committed Oct 22, 2023
1 parent 3f62994 commit f3f03f8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set version
run: echo "RELEASE_VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Bump version and push tag
id: bump_version
uses: phips28/gh-action-bump-version@master
with:
tag-prefix: 'v' # optional, default is 'v'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Release ${{ env.RELEASE_VERSION }}
tag_name: ${{ steps.bump_version.outputs.newTag }}
release_name: Release ${{ steps.bump_version.outputs.newTag }}
draft: false
prerelease: false

Expand Down

0 comments on commit f3f03f8

Please sign in to comment.