Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Jan 11, 2024
1 parent cf3dfe7 commit 31b81b4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
workflow_dispatch:
repository_dispatch:
types:
- buildhook

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Enable Corepack
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build project
run: pnpm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vitepress/dist

0 comments on commit 31b81b4

Please sign in to comment.