-
-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (29 loc) · 718 Bytes
/
main.yml
File metadata and controls
32 lines (29 loc) · 718 Bytes
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
name: CI & CD
on:
push:
branches:
- hexo
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Build Production
run: pnpm build
- name: Deploy Web-site
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./public
cname: tech-query.me
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
force_orphan: true