Skip to content

Commit 68626f9

Browse files
committed
add github workflow
1 parent 1bf7a3b commit 68626f9

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Do not edit this file! This workflow should "just work"
2+
3+
name: Announce New Release to Rayforge Registry
4+
5+
# This workflow triggers automatically whenever a new tag matching 'v*.*.*' is pushed.
6+
on:
7+
push:
8+
tags:
9+
- 'v*.*.*'
10+
11+
jobs:
12+
announce-release:
13+
name: Announce to Central Registry
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Send repository_dispatch event
17+
uses: peter-evans/repository-dispatch@v2
18+
with:
19+
# The central registry repository that will receive the announcement.
20+
repository: barebaric/rayforge-registry
21+
22+
# This uses the secret you created in your repository settings.
23+
token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
24+
25+
# This is the event name the central registry is listening for.
26+
event-type: addon-release-published
27+
28+
# This is the data payload sent with the announcement.
29+
# It includes the tag that triggered the workflow and your repository name.
30+
client-payload: >-
31+
{
32+
"tag": "${{ github.ref_name }}",
33+
"repository": "${{ github.repository }}"
34+
}

0 commit comments

Comments
 (0)