Skip to content

fix: github pages deployment #17

fix: github pages deployment

fix: github pages deployment #17

Workflow file for this run

name: 'build'
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build, Check, Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Setup node
uses: actions/setup-node@v3
with:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
pnpm build
- name: Check
run: pnpm check
- name: Lint
run: pnpm lint
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
path: 'build/'
deploy-demo:
name: Deploy
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2