Former-commit-id: 56363d71da0317cad45376d79f7db802f7412939 Former-commit-id: 1dbf959c7995bdc01b53c258545fc955dd56dc79 Former-commit-id: 89c962caf8481b586f65a087ad510adac78b7835 Former-commit-id: 1f77e4887baeed1481603a6f42fe1d627adfa9f0 [formerly ac98e34d9ade2147343dc7575c6ab9dde5189f5f] Former-commit-id: 927df816736a3367a9aa0283f10ce3b9c2ab7516 Former-commit-id: 66c05d7535451883e7fea3fa3b0e2ff4f510cef1 Former-commit-id: 3132a052d679b0f02aaca9c89ecab7d78822b98a Former-commit-id: 4ca51853c4830662983168420dc4beadee9ab507 Former-commit-id: d28fe77b868e883868da8d3a467b00a9e8755a7c
31 lines
795 B
YAML
31 lines
795 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 --rescan-local=true
|
|
- name: refresn CDN
|
|
run: ./deploy/qshell cdnrefresh --dirs -i ./deploy/cdnrefresh.txt |