Skip to content

Merge pull request #268 from Mesnage-Org/pre-commit-ci-update-config #25

Merge pull request #268 from Mesnage-Org/pre-commit-ci-update-config

Merge pull request #268 from Mesnage-Org/pre-commit-ci-update-config #25

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: 'master'
jobs:
build_site:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
cache-dependency-path: 'web/pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install
- name: build
run: |
pnpm build
touch build/.nojekyll
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
path: 'web/build/'
deploy:
needs: build_site
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1