-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (50 loc) · 1.73 KB
/
cd.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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Release Please Actions
name: "CD: Release Please"
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
if: github.repository == 'opencadc/science-portal'
steps:
-
name: Create release
id: release-please
uses: googleapis/[email protected]
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
-
name: Dispatch Edge Build
# Run this step only if the release-please completes successfully
if: steps.release-please.outcome == 'success'
uses: peter-evans/[email protected]
with:
repository: opencadc/science-portal
event-type: edge-build
token: ${{ secrets.GITHUB_TOKEN }}
client-payload: |-
{
"releases_created": "${{ steps.release-please.outputs.release_created }}",
"tag_name": "${{ steps.release-please.outputs.tag_name }}",
"sha": "${{ steps.release-please.outputs.sha }}"
}
-
name: Dispatch Science Portal Release Build
uses: peter-evans/[email protected]
if: ${{ steps.release-please.outputs.release_created == 'true' }}
with:
repository: opencadc/science-portal
event-type: release-build
token: ${{ secrets.GITHUB_TOKEN }}
client-payload: |-
{
"releases_created": "${{ steps.release-please.outputs.release_created }}",
"tag_name": "${{ steps.release-please.outputs.tag_name }}",
"sha": "${{ steps.release-please.outputs.sha }}"
}