Update release-please.yml
Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
parent
f9c3108590
commit
c9165c682e
1 changed files with 1 additions and 14 deletions
15
.github/workflows/release-please.yml
vendored
15
.github/workflows/release-please.yml
vendored
|
|
@ -20,8 +20,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
release_created: ${{ steps.rp.outputs.release_created }}
|
release_created: ${{ steps.rp.outputs.release_created }}
|
||||||
release_tag: ${{ steps.rp.outputs.release_tag }}
|
|
||||||
release_name: ${{ steps.rp.outputs.release_name }}
|
|
||||||
steps:
|
steps:
|
||||||
- id: app-token
|
- id: app-token
|
||||||
uses: actions/create-github-app-token@v2
|
uses: actions/create-github-app-token@v2
|
||||||
|
|
@ -34,17 +32,6 @@ jobs:
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
config-file: release-please-config.json
|
config-file: release-please-config.json
|
||||||
|
|
||||||
# ✅ Notify Stoat webhook immediately after release is created
|
|
||||||
- name: Notify Stoat
|
|
||||||
if: steps.rp.outputs.release_created == 'true'
|
|
||||||
run: |
|
|
||||||
RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/${{ steps.rp.outputs.release_tag }}"
|
|
||||||
MSG="🚀 New release: ${{ steps.rp.outputs.release_name }} (${{ steps.rp.outputs.release_tag }}) - $RELEASE_URL"
|
|
||||||
|
|
||||||
curl -X POST "https://stoat.chat/api/webhooks/01KM0VR768BP5W0CAB54ASK2QP/ruEjyZDLwgOip8ClH_oURUPu3LehRz_7yEXb1VVdO5ZuX2d4Pd8-z7aN0aQWmbrj" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{\"content\":\"$MSG\"}"
|
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
name: Publish App
|
name: Publish App
|
||||||
needs: release-please
|
needs: release-please
|
||||||
|
|
@ -57,7 +44,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue