Former-commit-id: 5810d2d2f84ea7f468e7312074053117a496ecd4 Former-commit-id: 999703ea7a4608ce0733568d7293edecfb3d27c1 Former-commit-id: e5ea3608b30069656efc5c33382ed87b33f0848a Former-commit-id: 3156728b517e997d8557e269e6db48a9293d77e0 [formerly a288ee63742fab85aabdf366efb4fd5b0951445c] Former-commit-id: 5caa035ce0e7890dda5b4f70e59b0c465f04391e Former-commit-id: 7d13b69ca76cc1db8f11e418623db577e85b3d0a Former-commit-id: f14cff2f01583bc3c0fc6be4be530a1ba3fa7f52 Former-commit-id: 56d02ef0ad09f3ce073a70ca70cbd214babdaa82 Former-commit-id: 2c5e8d47cc9ae915ac0c1104f45a7b942dab1930
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: test
|
|
run: echo $GITHUB_WORKSPACE
|
|
- name: test folder
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
ls
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '10.x'
|
|
- name: Install Yarn
|
|
run: |
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
export PATH=$HOME/.yarn/bin:$PATH
|
|
- name: Install packages
|
|
run: yarn
|
|
- name: Build Code
|
|
run: yarn run build:github
|
|
- name: test folder
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/dist
|
|
ls
|
|
- name: Deploy to CDN
|
|
run: |
|
|
./deploy/qshell account ${{ secrets.AK }} ${{ secrets.SK }} liyang
|
|
./deploy/qshell qupload2 --src-dir=GITHUB_WORKSPACE/dist --bucket=fairyever-site --key-prefix=d2-admin/preview/ --ignore-dir=false --overwrite=true --check-exists=true --check-hash=true --check-size=true --rescan-local=true
|
|
./deploy/qshell cdnrefresh --dirs -i ./deploy/cdnrefresh.txt |