Fix yOffset in tree chart #245
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 demo | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: Install and Build | |
run: | | |
npm install | |
npm run build | |
- name: Move files | |
run: mv dist demo/ | |
- name: Build image | |
run: | | |
cd demo && docker build . \ | |
--tag gcr.io/gramps-web-demo/gcp-api:latest \ | |
-f Dockerfile | |
- id: "auth" | |
uses: "google-github-actions/auth@v0" | |
with: | |
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" | |
- name: Set up Google Cloud | |
uses: 'google-github-actions/setup-gcloud@v1' | |
with: | |
version: '>= 363.0.0' | |
project_id: gramps-web-demo | |
- name: Setup Docker | |
run: | | |
gcloud auth configure-docker | |
- name: Push image to container registry | |
run: docker push gcr.io/gramps-web-demo/gcp-api:latest | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- id: "auth" | |
uses: "google-github-actions/auth@v0" | |
with: | |
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" | |
- id: "deploy" | |
uses: "google-github-actions/deploy-cloudrun@v0" | |
with: | |
service: "gcp-api" | |
image: "gcr.io/gramps-web-demo/gcp-api:latest" |