-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 990 Bytes
/
stage.yml
File metadata and controls
28 lines (24 loc) · 990 Bytes
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
name: Sync content with S3 Staging
on:
workflow_dispatch: # for testing / manually running workflows via github ui
pull_request_target: # pr targeting main was closed -- we check merge status in stage_check job below
types: [closed]
branches: [main]
jobs:
stage_check: # only stage if pr was merged with main or workflow triggered manually
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-24.04
steps:
- name: Check Stage Conditions
run: echo "stage_check passed, proceeding to deploy to staging"
# below jobs run only if stage_check passes
sync:
needs: stage_check
uses: hellocoop/tools/.github/workflows/code-deploy-client.yml@main
with:
AWS_ACCOUNT: ${{ vars.HELLO_STAGING_AWS }} # set at org level
STACK: QuickstartStack
WORKING_DIR: .
TARGET_BRANCH: main
DOMAIN: quickstart.hello-staging.net # for version comparison
BUILD_DIR: ./S3