Release #16
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: | |
repository_dispatch: | |
types: release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get Version Number | |
uses: fwilhe2/bump-version@main | |
id: bump | |
- run: echo New Version Number ${{ steps.bump.outputs.newVersion }} | |
- name: Create Release | |
run: | | |
gh release create ${{ steps.bump.outputs.newVersion }} --title "Release ${{ steps.bump.outputs.newVersion }}" --notes-file release-notes-draft.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
echo "" > release-notes-draft.md | |
if [[ `git status --porcelain` ]]; then | |
git config --global user.name 'Florian Wilhelm' | |
git config --global user.email '[email protected]' | |
git commit -am "Prepare next development iteration" | |
git push | |
else | |
echo Release has no changelog | |
fi |