-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (38 loc) · 1017 Bytes
/
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
on:
push:
branches:
- main
name: Release
jobs:
release-staging:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test
- name: Deploy to Staging
uses: cloudflare/[email protected]
with:
apiToken: ${{secrets.CF_TOKEN }}
environment: 'staging'
release-production:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: freeway
- uses: actions/checkout@v3
- uses: ./.github/actions/test
- name: Deploy to Production
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_TOKEN }}
environment: 'production'
if: ${{ steps.release.outputs.release_created }}