Former-commit-id: a49e138b521c70b96053007b5c29ef6c7c5ac323 Former-commit-id: 2a288fd748319936e6ae5e6e3206ed625497674c Former-commit-id: e5e9a47eafd85e9d465a1719a9db1ca024c63300 Former-commit-id: 33999f24a3107ec1a2ebc89cb9ccdf5e0df20ed8 [formerly 6dff8dc7f23b71cb3afc200f766ab66644303e17] Former-commit-id: 98dc89642cfb66c80f0192cd23c6984aa8ee15c9 Former-commit-id: 9e45dcee42dd681cab7577d9dea6b9b9d8c583f6 Former-commit-id: b4b426f69d0f03ad9b40c31b4d5de7ea6269f025 Former-commit-id: 3ae884d805b46b137fb8a2eb00082aa6741d48f1 Former-commit-id: 1774c8af9b1091df8905d87e1816a10ac9bd8857
37 lines
1019 B
YAML
37 lines
1019 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: |
|
|
dist=$GITHUB_WORKSPACE/dist
|
|
./deploy/qshell account ${{ secrets.AK }} ${{ secrets.SK }} liyang
|
|
./deploy/qshell qupload2 --src-dir=$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 |