-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 996 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy static content to Pages
on:
push:
branches: ['master']
pull_request:
branches: ['master']
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 💾
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install Dependencies And Build 🔧
run: pnpm install --frozen-lockfile && pnpm build
- name: Deploy with gh-pages 📦
run: |
git config --global user.email "[email protected]"
git config --global user.name "chan9yu"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
pnpm run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}