-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 992 Bytes
/
hexo.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
37
38
39
40
name: hexo
on:
push:
branches:
- indigo
env:
GH_REF: github.com/lanpangzhi/lanpangzhi.github.io
secretId: ${{ secrets.SECRETID }}
secretKey: ${{ secrets.SECRETKEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout codes
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "10.14.0"
- name: Install and Deploy
run: |
npm install hexo-cli -g
npm install
hexo generate
hexo d
- name: Deploy github
run: |
cd ./public
git init
git config user.name "lanpangzhi"
git config user.email "[email protected]"
git add .
git commit -m "GitHub Actions 自动部署"
git push --force --quiet "https://${{secrets.CI_TOKEN}}@${{env.GH_REF}}" master:master