Skip to content

Commit

Permalink
feat(ci): add github action workflow ci for automated build & deploy …
Browse files Browse the repository at this point in the history
…process when a git push event is triggered
  • Loading branch information
andatoshiki committed Mar 16, 2024
1 parent bcfec00 commit f92a887
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Vitepres Build & Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm i pnpm -g
- run: pnpm install --frozen-lockfile

- name: Build
run: pnpm docs:build

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

0 comments on commit f92a887

Please sign in to comment.