fix release #30
Workflow file for this run
This file contains hidden or 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: "tagged-release" | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| tagged-release: | |
| name: "Tagged Release" | |
| runs-on: "ubuntu-latest" | |
| permissions: | |
| contents: write | |
| steps: | |
| # This checks out the new tag, not the master branch. E.g. 'refs/tags/v26.2.12.0' | |
| - name: Check out the repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: "Create version file" | |
| shell: bash | |
| run: | | |
| printf -- '{"version": "%s"}' "${{github.ref_name}}" > mpvacious/version.json | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| branch: master | |
| commit_message: Update version file | |
| commit_user_name: GitHub Actions | |
| commit_user_email: noreply@github.com | |
| commit_author: GitHub <noreply@github.com> | |
| - name: "Create zip" | |
| run: | | |
| make BRANCH=HEAD | |
| - name: "Create release" | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| prerelease: false | |
| generate_release_notes: true | |
| append_body: true | |
| body_path: .github/RELEASE/release-boilerplate.md | |
| name: "mpvacious ${{github.ref_name}}" | |
| files: | | |
| .github/RELEASE/*.zip | |
| .github/RELEASE/*.conf |