Skip to content

fixup! github/actions: revamp #8

fixup! github/actions: revamp

fixup! github/actions: revamp #8

Workflow file for this run

name: deploy-server
on: push
jobs:
build-webapp:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm --workspace={discojs,discojs-web,webapp} run build
- uses: actions/upload-pages-artifact@v3
with:
path: webapp/dist
deploy-pages:
needs: build-webapp
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
deploy-server:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: google-github-actions/auth@v2
with:
project_id: disco-367212
workload_identity_provider: projects/905419434797/locations/global/workloadIdentityPools/github/providers/github
- uses: google-github-actions/deploy-cloudrun@v2
with:
service: disco
image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco:latest