Skip to content

Merge pull request #9 from evolvedlight/dependabot/npm_and_yarn/micro… #37

Merge pull request #9 from evolvedlight/dependabot/npm_and_yarn/micro…

Merge pull request #9 from evolvedlight/dependabot/npm_and_yarn/micro… #37

Workflow file for this run

name: Build Vitepress Site with pnpm and deploy to pages
on:
push:
branches:
- main
workflow_dispatch:
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:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Build site
run: pnpm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: .vitepress/dist
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2