refactor: Remove minijinja requirement and replace version wi…
#43
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: Build and Upload Artifact | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "Cargo.toml" | |
| jobs: | |
| rutorrent: | |
| uses: thevickypedia/rust-releaser/.github/workflows/entrypoint.yml@main | |
| with: | |
| build_linux_arm: false | |
| build_macos_arm: false | |
| build_windows_arm: false | |
| secrets: inherit | |
| release-notes: | |
| needs: rutorrent | |
| if: needs.rutorrent.outputs.release-flag == 'true' | |
| runs-on: | |
| - thevickypedia-default | |
| - posix | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Update release | |
| run: | | |
| git fetch --tags | |
| PREV_TAG=$(git describe --tags --abbrev=0 HEAD^) | |
| echo "::notice title=Previous Release::${PREV_TAG}" | |
| repository="${{ github.server_url }}/${{ github.repository }}" | |
| git log "${PREV_TAG}..HEAD" --pretty=format:"- [%h](${repository}/commit/%H) %s" --no-merges > release_notes.txt | |
| cat release_notes.txt | |
| gh release edit ${{ needs.rutorrent.outputs.release-tag }} \ | |
| --repo ${{ github.repository }} \ | |
| --notes-file release_notes.txt | |
| env: | |
| GH_TOKEN: ${{ secrets.GIT_TOKEN }} | |
| - name: Update Release Notes | |
| uses: thevickypedia/update-release-notes@v2 | |
| with: | |
| commit_message: "chore: Update release notes for ``${{ needs.rutorrent.outputs.release-tag }}``" | |
| filename: release_notes.md | |
| env: | |
| git_token: ${{ secrets.GIT_TOKEN }} |