1313 - ' .github/workflows/ios.yml'
1414 - ' .cirrus.yml'
1515 - ' README.md'
16- release :
17- types : [published]
16+ tags :
17+ - ' v* '
1818
1919env :
2020 BUILD_TYPE : RelWithDebInfo
@@ -188,8 +188,8 @@ jobs:
188188 shell : bash
189189 id : artifact_name
190190 run : |
191- if [[ "${{ github.event_name }}" == "release " ]]; then
192- echo "name=fluidsynth-${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
191+ if [[ "${{ github.ref_type }}" == "tag " ]]; then
192+ echo "name=fluidsynth-${{ github.ref_name }}" >> $GITHUB_OUTPUT
193193 else
194194 echo "name=fluidsynth-${{ github.run_id }}" >> $GITHUB_OUTPUT
195195 fi
@@ -584,7 +584,7 @@ jobs:
584584
585585 # Publish artifacts to GitHub releases (only on release events)
586586 publish-release :
587- if : github.event_name == 'release' && github.event.action == 'published '
587+ if : github.ref_type == 'tag '
588588 needs :
589589 - acceptance-test
590590 - msvc-build
@@ -618,7 +618,7 @@ jobs:
618618
619619 # Create announcement PR in website repository
620620 announce-release :
621- if : github.event_name == 'release' && github.event.action == 'published '
621+ if : github.ref_type == 'tag '
622622 needs : [publish-release]
623623 runs-on : ubuntu-22.04
624624 name : 📢 Announce Release
@@ -630,8 +630,7 @@ jobs:
630630 - name : Generate HTML Release Announcement
631631 run : |
632632 set -e
633- TAG_NAME="${{ github.event.release.tag_name }}"
634- RELEASE_NAME="${{ github.event.release.name }}"
633+ TAG_NAME="${{ github.ref_name }}"
635634 VERSION="${TAG_NAME#v}"
636635 DATE="$(date +%Y-%m-%d)"
637636 FILENAME="${DATE}-released-fluidsynth-${VERSION//./-}.md"
@@ -656,6 +655,6 @@ jobs:
656655 target-folder : _posts/
657656 token : ${{ secrets.DEPLOY_API_TOKEN_NEW }}
658657 clean : false
659- commit-message : Announce FluidSynth ${{ github.event.release.tag_name }}
658+ commit-message : Announce FluidSynth ${{ github.ref_name }}
660659 git-config-name : Fluid Release Announcer
661660 git-config-email : fluid-release-bot@fluidsynth.github.io
0 commit comments