-
Notifications
You must be signed in to change notification settings - Fork 37
39 lines (34 loc) · 1.05 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
push:
tags:
- v*
workflow_dispatch:
name: Create Release
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Release
run: gh release create "${{ github.ref }}" --notes "$(./generate-release-notes)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dispatch: # initiate dispatch, send trigger to lavinmq-website
name: Dispatch
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Dispatch to workflow
run: |
curl -X POST https://api.github.com/repos/84codes/lavinmq-website/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.REPO_ACCESS_84C }} \
--data '{"event_type": "new_release", "client_payload": { "version": "'"${{ github.ref_name }}"'" }}'