Files
mes-ui-d2/.github/workflows/main.yml
FairyEver db1f31d008 ci test
Former-commit-id: deba196efab7258d05671554933d0e4f61492267
Former-commit-id: 8ac8376bd44c5ccd763ad96a00073f0e025f54ce
Former-commit-id: bee0fe924afdf80abb3c1ccc81c1956a3324fd29
Former-commit-id: 329d627e9b7e19319002e5685a646704f041ea7a [formerly 5e128568d8b6897950a9552de8a887d58158237d]
Former-commit-id: 91067e7aaa5419ce0dd5032a0f14dd0068574c1f
Former-commit-id: 4d16c2eea2f3f349e9d191688aca17c548561cf1
Former-commit-id: fd279cfad732ee47f946ece8310c46d4f23d405e
Former-commit-id: a948ef2cc2888a7995bb07c62fa3b6088c739735
Former-commit-id: aa6b2b66826157310936887557665ed868f4098a
2019-11-26 13:32:33 +08:00

31 lines
851 B
YAML

name: Build and upload to qiniu CDN
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: install packages
run: npm i
- name: build
run: npm run build:github
- name: qiniu login
run: ./deploy/qshell account ${{ secrets.AK }} ${{ secrets.SK }} liyang
- name: qiniu upload
run: |
dist=$GITHUB_WORKSPACE/dist
bucket=fairyever-site
prefix=d2-admin/preview/
./deploy/qshell qupload2 --src-dir=$dist --bucket=$bucket --key-prefix=$prefix --overwrite=true --check-exists=true --check-hash=true --check-size=true --rescan-local=true
- name: refresn CDN
run: ./deploy/qshell cdnrefresh --dirs -i ./deploy/cdnrefresh.txt