Merge pull request #7 from Flobul/update #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
build: | |
name: "Generate release on version change" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get Versions | |
id: versions | |
run: | | |
VERSION_NUMBER=$(cat version.ini) | |
echo "VERSION_NUMBER=${VERSION_NUMBER}" >> $GITHUB_ENV | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: "v${{ env.VERSION_NUMBER }}" | |
name: "Release v${{ env.VERSION_NUMBER }}" | |
body: "Version: ${{ env.VERSION_NUMBER }}" | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |