Former-commit-id: 64322e8db9a34173ac22b3a2d3b7e9c01ec7ff24 Former-commit-id: 3ee058c89e7807e3c5f476f5112f5f86ffcf2a61 Former-commit-id: 2e28cd0f0015b1d6aa9bf6cbc781fec905af98fa Former-commit-id: 5f78e52b52eb5c9764b0779d8daa73f8d3120de4 [formerly 0210a613ff3c0a9f3a9b1dda37063f187dd044fe] Former-commit-id: 14c67bfdd687d2da8ba1120eca1f29ab97fb2672 Former-commit-id: 71956a8519cf41d984f42ee79f9bdc5503a44630 Former-commit-id: 4c685b07bc0fe405ff5443885e9d93e4c5b3655a Former-commit-id: eb8dee217c03d696177b177c4b7d609994cf2f28 Former-commit-id: af9983db7dda28e8d0ec52eb5430aba91f3d1fb3
31 lines
851 B
YAML
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 |