Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GCS | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: 'Environment to deploy to' | |
required: true | |
default: 'stage' | |
options: | |
- stage | |
- prod | |
push: | |
branches: | |
- gcs-pipeline | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Google Cloud SDK | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: set up gcloud | |
uses: google-github-actions/setup-gcloud@v2 | |
- name: stage build with unpublsiehd contents | |
run: | | |
yarn install | |
yarn build:unpublished | |
- name: Run deployment script | |
run: | | |
bash ${Github_Workspace}/bin/gcs-deploy.sh | |
env: | |
EXTENSION_WORKSHOP_BUCKET_GCS = ${{ secrets.EXTENSION_WORKSHOP_BUCKET_GCS }} | |