forked from 0xPolygon/polygon-docs-old
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (21 loc) · 793 Bytes
/
deploy_gcp.yml
File metadata and controls
23 lines (21 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Docs Deployment GCP
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- dev
- main
jobs:
deploy:
if: |
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'hosted/')) ||
(github.event_name == 'push' && github.ref == 'refs/heads/dev') ||
(github.event_name == 'push' && github.ref == 'refs/heads/main')
uses: ./.github/workflows/build_and_deploy_gcp.yml
with:
environment: ${{(github.ref == 'refs/heads/dev' && 'dev') ||
(github.ref == 'refs/heads/main' && 'staging') ||
(github.event_name == 'pull_request' && 'dev')}}
core_app: ${{ github.ref == 'refs/heads/main' && 'polygon-docs-main' || 'polygon-docs-dev' }}
secrets: inherit