From f89ee5a370d864510076f75b51f0d87320bfe862 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Fri, 9 Jan 2026 21:05:42 +0000 Subject: [PATCH] ci: send release notification on create (#481) --- .github/workflows/docker.yaml | 1 + .github/workflows/release-please.yml | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index e12f3a8b..997a98d9 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -7,6 +7,7 @@ on: pull_request: paths: - "Dockerfile" + workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 8b521563..69b53a2e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -20,6 +20,7 @@ jobs: runs-on: ubuntu-latest outputs: release_created: ${{ steps.rp.outputs.release_created }} + tag_name: ${{ steps.rp.outputs.tag_name }} steps: - id: app-token uses: actions/create-github-app-token@v2 @@ -32,8 +33,8 @@ jobs: token: ${{ steps.app-token.outputs.token }} config-file: release-please-config.json - publish-stable: - name: Publish release to stable branch + publish-please: + name: Publish Please needs: release-please if: needs.release-please.outputs.release_created == 'true' runs-on: ubuntu-latest @@ -44,6 +45,15 @@ jobs: with: app-id: ${{ secrets.GH_STOAT_RELEASE_APP_ID }} private-key: ${{ secrets.GH_STOAT_RELEASE_APP_PRIVATE_KEY }} - - uses: katyo/publish-crates@v2 + + - name: Send release notification webhook + run: | + RELEASE_URL="https://github.com/revoltchat/backend/releases/tag/${{ needs.release-please.outputs.tag_name }}" + curl -X POST "${{ secrets.STOAT_WEBHOOK_UPDATES_URL }}" \ + -H "Content-Type: application/json" \ + -d "{\"content\": \"$RELEASE_URL\"}" + + - name: Publish crates + uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }}