-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.05 KB
/
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
# name: Deploy | 部署
# on:
# push:
# branches: [main]
# # pull_request:
# # branches: [master]
# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest
# if: github.repository == 'misitebao/template-git-repository'
# steps:
# - name: Checkout | 切换到部署分支
# uses: actions/checkout@v2
# with:
# ref: "master"
# submodules: true
# fetch-depth: 0
# - name: Setup Hugo | 设置Hugo环境
# uses: peaceiris/actions-hugo@v2
# with:
# hugo-version: "0.81.0"
# extended: true
# - name: Build | 构建
# run: hugo
# - name: Deploy to Server | 部署到服务器
# uses: hengkx/[email protected]
# with:
# HOST: ${{ secrets.DEPLOY_HOST }}
# USERNAME: ${{ secrets.DEPLOY_HOST_USER }} # 为了用户信息安全对敏感数据可以在secrets中配置请看下图
# PASSWORD: ${{ secrets.DEPLOY_HOST_PASSWORD }}
# SOURCE: "public"
# TARGET: "/www/wwwroot/tigateam.org"