-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 1015 Bytes
/
prerelease.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
name: Prerelease
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
steps:
- id: release
uses: googleapis/release-please-action@v4
with:
config-file: ".github/prerelease-config.json"
manifest-file: ".github/release-manifest.json"
deploy-test:
name: Deploy to Test
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.releases_created == 'false' }}
needs: release-please
steps:
- run: echo "Deploying to test!"
deploy-staging:
name: Deploy to Staging
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
needs: release-please
steps:
- run: echo "Deploying to staging!"
- uses: googleapis/release-please-action@v4
with:
config-file: ".github/release-config.json"
manifest-file: ".github/release-manifest.json"