Skip to content

fixup! github/actions: revamp #15

fixup! github/actions: revamp

fixup! github/actions: revamp #15

Workflow file for this run

name: deploy
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:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
project_id: disco-367212
workload_identity_provider: projects/905419434797/locations/global/workloadIdentityPools/github/providers/disco
- uses: google-github-actions/deploy-cloudrun@v2
with:
service: disco
project_id: disco-367212
image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco:latest
region: europe-west6