Former-commit-id: 459747d2de5f644f9d0735cca4c52702bd7dfacf Former-commit-id: c2d57a6f05e82e0f0424130b5dd8a58f9c507a94 Former-commit-id: bd0213b411b03c09d979fe32fac12d47b7502404 Former-commit-id: 7f0c2f5e924d2012c7b75ce1123d878b9462aad5 [formerly e7a15b863af7a17893d07530d79528b8f28cf6a9] Former-commit-id: 835382c3cbc5f84f3d4d703347df6c19a9557c92 Former-commit-id: c0794454f5f015707639b9def3adf42e78c83827 Former-commit-id: e767d3dc0f95590620a18f144f7c54d648cd08f5 Former-commit-id: 5634e3d0f1e837d01dbae3e9b6a82e9eec98a086 Former-commit-id: 6582a0be4f6f96ccfa1fd1dce8c4ceb65071cbb8
36 lines
1000 B
YAML
36 lines
1000 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 |