-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (61 loc) · 2.13 KB
/
release-please.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
api--tag_name: ${{ steps.release.outputs['server/hasura--version']}}
api--release_created: ${{ steps.release.outputs['server/hasura--release_created']}}
app--tag_name: ${{ steps.release.outputs.app--version}}
app--release_created: ${{ steps.release.outputs.app--release_created}}
faas--tag_name: ${{ steps.release.outputs['server/faas--version']}}
faas--release_created: ${{ steps.release.outputs['server/faas--release_created']}}
web--tag_name: ${{ steps.release.outputs.app--version}}
web--release_created: ${{ steps.release.outputs.app--release_created}}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GH_PAT }}
- name: Print release outputs for debugging
continue-on-error: true
run: |
echo "Release outputs:"
echo '${{ toJson(steps.release.outputs) }}'
release-api:
if: ${{needs.release-please.outputs.api--release_created}}
needs: release-please
uses: ./.github/workflows/release-api.yaml
secrets: inherit
with:
tag_name: ${{needs.release-please.outputs.api--tag_name}}
environment: production
release-app:
if: ${{needs.release-please.outputs.app--release_created}}
needs: release-please
uses: ./.github/workflows/release-app.yaml
secrets: inherit
with:
tag_name: ${{needs.release-please.outputs.app--tag_name}}
lane: beta
release-faas:
if: ${{needs.release-please.outputs.faas--release_created}}
needs: release-please
uses: ./.github/workflows/release-faas.yaml
secrets: inherit
with:
tag_name: ${{needs.release-please.outputs.faas--tag_name}}
release-web:
if: ${{needs.release-please.outputs.web--release_created}}
needs: release-please
uses: ./.github/workflows/release-web.yaml
secrets: inherit
with:
tag_name: ${{needs.release-please.outputs.web--tag_name}}
environment: production