Former-commit-id: bc76ba2e88c34767cbb82cb652c16315d0345fe6 Former-commit-id: cf6aebdd19f7a9a9b570d7b2f883e087dcbc72e8 Former-commit-id: 6c8bdbae88a2c4780d70aa741a67cc3bf1124f39 Former-commit-id: b41c9eb6edc09eefb783611d9d69f2fce19e2a94 [formerly c7e6034ddd80ac505cb40303b71c8d0d0e801a7c] Former-commit-id: 64ca3b64e3965da8df30fd54c967ca6eb9219dd1 Former-commit-id: eb56b55e676a2367c0b50cc5952d75ca7013525c Former-commit-id: e27946a331806976477cc6af1280950d429818a4 Former-commit-id: a1c3c263d601dd149713012c71da27b525d55ce3 Former-commit-id: 07d2eb8fa0e7819979b1653e94b4ea1ae4f351b5
36 lines
1007 B
YAML
36 lines
1007 B
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: 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 |