-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtencent.yml
31 lines (29 loc) · 862 Bytes
/
tencent.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
name: Deploy to Tencent CloudBase
on: push
jobs:
build:
runs-on: ubuntu-latest
name: Deploy Hexo Souce Repo to Tencent CloudBase
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
# NPM and Hexo
- name: NPM
run: npm install
- name: Clean
run: ./node_modules/.bin/hexo clean
- name: Generate
run: ./node_modules/.bin/hexo generate
# Deploy static to Tencent CloudBase
- name: Deploy static to Tencent CloudBase
id: deployStatic
uses: TencentCloudBase/[email protected]
with:
secretId: ${{ secrets.SECRET_ID }}
secretKey: ${{ secrets.SECRET_KEY }}
envId: ${{ secrets.ENV_ID }}
staticSrcPath: public