-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 1.08 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
36
name: PKG&OSS
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NANJING2 }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
cd /www/wwwroot/jx3box/data
cd jx3box-data
git pull origin master
sync-to-oss:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: OSS
uses: manyuanrong/[email protected]
with:
endpoint: "oss-cn-hangzhou.aliyuncs.com"
access-key-id: ${{secrets.AccessKey_ID_CDN}}
access-key-secret: ${{secrets.Access_Key_Secret_CDN}}
- run: ossutil cp -rf data oss://jx3box/data