Files
mes-ui-d2/.github/workflows/qiniu.yml
FairyEver 51189fd5a4 ci
Former-commit-id: d6f4575b98813fb1876e043481edf2571ac2fe09
Former-commit-id: 4e53e116e2461201aeaa2207fd89125e4cb00ece
Former-commit-id: b714ce112911b12be4ed39deee69fadf8b6a79aa
Former-commit-id: a058053b7d15a220c763621b29d718f74608139a [formerly 5ea7fe734c42b7ffe77f4ca223f2a34cc6224bd7]
Former-commit-id: 3017ecf4849672c80b234445cbcc75cfb107e2b6
Former-commit-id: 77e845353a6e8e7b02c238e51c1e57e3ecaec9e0
Former-commit-id: 9c2c54b8e3b717780808fb22ccfec3de7f670a94
Former-commit-id: 8a0565eae312a75add6e5be8bde19cfeda9b9712
Former-commit-id: 18b8872acbd9bbf6eca1a8f94cff79e29eb18528
2019-11-27 10:04:05 +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