Skip to content

Commit

Permalink
added backend to deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwillmcleod committed Feb 10, 2024
1 parent 0e9ac08 commit b12755e
Show file tree
Hide file tree
Showing 2 changed files with 3,935 additions and 3,640 deletions.
40 changes: 39 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,45 @@ name: Deploy DEV
on: [workflow_dispatch]

jobs:
DeployClient:
deploy-backend:
runs-on: ubuntu-latest
environment: development
permissions:
contents: 'read'
id-token: 'write'

steps:
- uses: actions/checkout@v3

- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '18.x'

- name: npm install
run: |
npm install
- name: Create env file
run: echo ${{ secrets.ASPA_DEV_BACKEND_ENVFILE }} | base64 --decode > .env

- name: Build app
run: |
npm run build
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.ASPA_DEV_GCP_DEPLOYMENT_SA_CREDENTIALS }}'

- id: 'app-engine-deploy'
uses: 'google-github-actions/deploy-appengine@v2'
with:
project_id: wdcc-aspa-dev
working_directory: ./

deploy-frontend:
runs-on: ubuntu-latest
environment: DEV
defaults:
Expand Down
Loading

0 comments on commit b12755e

Please sign in to comment.