From d03b1af90d703a5d3473078740ca5ee373b35fb9 Mon Sep 17 00:00:00 2001 From: Serene-Arc <33189705+Serene-Arc@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:52:08 +1000 Subject: [PATCH 1/2] Add mastodon step to release step --- .github/workflows/make_release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/make_release.yaml b/.github/workflows/make_release.yaml index e51d2d0f3..1edc0c106 100644 --- a/.github/workflows/make_release.yaml +++ b/.github/workflows/make_release.yaml @@ -73,12 +73,19 @@ jobs: name: python-package-distributions path: dist/ - name: Create a GitHub release + id: make_release uses: ncipollo/release-action@v1 with: tag: ${{ steps.tag_version.outputs.new_tag }} name: Release ${{ steps.tag_version.outputs.new_tag }} body: ${{ env.CHANGELOG }} artifacts: dist/* + - name: Send release toot to Fosstodon + uses: cbrgm/mastodon-github-action@v2 + with: + access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }} + url: ${{ secrets.MASTODON_URL }} + message: "Version v${{ inputs.version }} of beets has been released! Check out all of the new changes at ${{ steps.create_release.outputs.html_url }}" publish_to_pypi: runs-on: ubuntu-latest From 0c96da11368a7c9615e3beb38f9a6affd8ede4c7 Mon Sep 17 00:00:00 2001 From: Serene <33189705+Serene-Arc@users.noreply.github.com> Date: Fri, 14 Jun 2024 21:51:29 +1000 Subject: [PATCH 2/2] Use output of tagging action in message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Šarūnas Nejus --- .github/workflows/make_release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/make_release.yaml b/.github/workflows/make_release.yaml index 1edc0c106..4bfc36d63 100644 --- a/.github/workflows/make_release.yaml +++ b/.github/workflows/make_release.yaml @@ -85,7 +85,7 @@ jobs: with: access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }} url: ${{ secrets.MASTODON_URL }} - message: "Version v${{ inputs.version }} of beets has been released! Check out all of the new changes at ${{ steps.create_release.outputs.html_url }}" + message: "Version ${{ steps.tag_version.outputs.new_tag }} of beets has been released! Check out all of the new changes at ${{ steps.create_release.outputs.html_url }}" publish_to_pypi: runs-on: ubuntu-latest