-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.11 KB
/
Copy pathdeploy.yml
File metadata and controls
46 lines (37 loc) · 1.11 KB
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
41
42
43
44
45
46
name: Deploy
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v1
- name: Install Node.js and yarn
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm install --production
- name: Build app
run: npm run build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
build_dir: dist
committer_email: 764798966@qq.com
fqdn: pl.apisium.cn
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy static to Tencent CloudBase
id: deployStatic
uses: TencentCloudBase/cloudbase-action@v1
with:
secretId: ${{ secrets.TENCENT_CLOUD_SECRET_ID }}
secretKey: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }}
envId: ${{ secrets.ENV_ID }}
staticSrcPath: dist
- name: Get the deploy result
run: echo "Deploy to cloudbase result ${{ steps.deployStatic.outputs.deployResult }}"