Skip to content

chore: use actions/upload-pages-artifact instead of actions/upload-ar… #6

chore: use actions/upload-pages-artifact instead of actions/upload-ar…

chore: use actions/upload-pages-artifact instead of actions/upload-ar… #6

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:
build-and-deploy:
permissions:
contents: read
pages: write
id-token: write
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-pages-artifact@v3
with:
path: 'build/client'
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4