Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

update banner

update banner #15

Workflow file for this run

name: Deploy static content to GCP Stage
on:
# Runs on pushes targeting these branches
push:
branches: ["master", "stage"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "gcp-stage"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: stage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
cache: npm
- name: Install all npm packages
run: npm ci
- name: Build all
run: npm run compile
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1
- name: Sync content
run: |-
gsutil -m -h "Cache-Control:public, max-age=86400" rsync -r dist/ gs://mdn-observatory-stage/