Skip to content

[breadboard] Don't delete completed chunk. #2472

[breadboard] Don't delete completed chunk.

[breadboard] Don't delete completed chunk. #2472

name: Deploy Website
on:
# Deploy whenever we merge to main.
push:
branches: ["main"]
# Allows deploying manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run
# in-progress and latest queued. However, do NOT cancel in-progress runs as we
# want to allow these production deployments to complete.
concurrency:
group: deploy-website
cancel-in-progress: false
jobs:
deploy-website:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: google/wireit@setup-github-actions-caching/v2
- uses: actions/configure-pages@v5
- run: npm ci
- name: Build production website
working-directory: packages/website
run: npm run build:prod
- name: Upload website artifact
uses: actions/upload-pages-artifact@v3
with:
name: breadboard-website
path: packages/website/dist/prod/breadboard
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
artifact_name: breadboard-website