Former-commit-id: c61d992ba65a164784d662c82b209d40b0a4b1cc Former-commit-id: 26652be2ff88cc71bb22e05fc98bd3e1578273b1 Former-commit-id: e92fc4b02357d13fc07677414bdea634c234cfc8 Former-commit-id: 5a5c36fc57c3405ad7a732fe24b3f001a3d375d9 [formerly 1614301ac988a17791126b160ef621cf3acd2fbd] Former-commit-id: 01792ebe2951dba00e12fa8bca33b2265cfb22ca Former-commit-id: 4fda8a4de312965c09119ea110065b752aaf5fb0 Former-commit-id: 0258b88f9bfe4dc6e798d9b97cc19974a2982cb0 Former-commit-id: 8392a48ca2fc493fa44f5208ab85f26c03bdae37 Former-commit-id: 92b69970ebe6495b451c93b8c0b99531d6944743
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 |