-
Notifications
You must be signed in to change notification settings - Fork 2k
38 lines (34 loc) · 1.11 KB
/
start-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
# Starts a release for the given ref on the Glue API
name: Start Release
on:
workflow_dispatch:
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
start_release:
name: Starts release process in Glue API
runs-on: [glue-notify]
steps:
- name: Set Env
uses: Chia-Network/actions/setjobenv@main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Start pre-release
uses: Chia-Network/actions/github/glue@main
if: "github.event.release.prerelease"
with:
json_data: '{"chia_ref": "${{ env.RELEASE_TAG }}"}'
glue_url: "${{ secrets.GLUE_API_URL }}"
glue_project: "${{ env.RFC_REPO }}-prerelease/${{ env.RELEASE_TAG }}"
glue_path: "start"
- name: Start release
uses: Chia-Network/actions/github/glue@main
if: "!github.event.release.prerelease"
with:
json_data: '{"chia_ref": "${{ env.RELEASE_TAG }}"}'
glue_url: "${{ secrets.GLUE_API_URL }}"
glue_project: "${{ env.RFC_REPO }}/${{ env.RELEASE_TAG }}"
glue_path: "start"