Skip to content

chore: specify version #2

chore: specify version

chore: specify version #2

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- main
- 'feature/**/build-deploy'
workflow_dispatch:
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
configure:
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
build:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: '9'
- name: Install node.js
uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: 'build/client'
deploy:
needs:
- configure
- build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4