Skip to content

Merge pull request #11 from COSCUP/enable-vue-ls-in-md #6

Merge pull request #11 from COSCUP/enable-vue-ls-in-md

Merge pull request #11 from COSCUP/enable-vue-ls-in-md #6

name: Deploy to GitHub Pages
on:
push:
branches: [main]
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: pages
cancel-in-progress: false
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js environment
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: package.json
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run ESLint
run: pnpm lint
- name: Check types
run: pnpm type-check
- name: Build with VitePress
run: pnpm build
- name: Deploy 📡
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .vitepress/dist
force_orphan: true