Skip to content

fixup! github/actions: revamp #12

fixup! github/actions: revamp

fixup! github/actions: revamp #12

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:
create_credentials_file: true
project_id: disco-367212
workload_identity_provider: projects/905419434797/locations/global/workloadIdentityPools/github/providers/github
service_account: disco-673@disco-367212.iam.gserviceaccount.com
- uses: google-github-actions/deploy-cloudrun@v2
with:
service: disco
image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco:latest
region: europe-west6