Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename old deploy files and add public dev deploy workflow #528

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to app engine (dev env)
name: Deploy to app engine (internal dev env)

on:
push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to app engine (test env)
name: Deploy to app engine (internal test env)

on:
push:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/deploy_public_appengine_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy to app engine (public dev env)

on:
push:
branches:
- main

env:
PROJECT_ID: dft-rlg-schemes-gis-dev

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'

- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0

- name: Build
run: |
npm ci
npm run setup-govuk
VITE_RESOURCE_BASE="https://${PROJECT_ID}.ew.r.appspot.com/data" npm run build
cd backend
rm -rf dist
cp -R ../dist .

- name: Authenticate to GCP
uses: google-github-actions/auth@v1
with:
credentials_json: '${{ secrets.GCP_DEV_CREDENTIALS }}'

- name: Deploy
uses: google-github-actions/deploy-appengine@v1
with:
project_id: ${{ vars.PROJECT_ID }}
deliverables: backend/app_dev.yaml
Loading