Skip to content

Commit

Permalink
chore: pages ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lienbaoagora committed Oct 28, 2024
1 parent 225fb3a commit 580fba0
Show file tree
Hide file tree
Showing 3 changed files with 1,955 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/page.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: deploy pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install pnpm 🤏🏻
uses: pnpm/action-setup@v4
with:
version: latest

- name: Setup Node 💚
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Build 🔧
working-directory: examples/web
run: |
pnpm install
pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: examples/web/dist
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules/**
**/dist/**
Loading

0 comments on commit 580fba0

Please sign in to comment.