diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ff35426..ac8efd3b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -431,3 +431,16 @@ jobs: dist_electron/nsis-web/out/*.7z.* dist_electron/nsis-web/*.exe target_commitish: ${{ github.sha }} + + update-tag-to-current-commit: + if: ${{ (github.event.release.tag_name || github.event.inputs.version) != '' }} + needs: [build-and-upload] + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Change tag to this commit for refreshing the release # c.f. voicevox_engine#854 + run: | + git tag -f ${{ github.event.release.tag_name || github.event.inputs.version }} + git push -f --tag