Former-commit-id: b8e5d8092bb2aa586aac29890cc0dd703e60a3ac Former-commit-id: 4231ced29e4645c863c9c98c5ff1d24eb09aac4b Former-commit-id: 3b2ccee8d5dcbf3d04a423d99daa1f5e35ddd4a4 Former-commit-id: a035166dcd3cfd38dc251e53110f77aac7c97ce7 [formerly f3de7b6125de0ea3bde02a0e265556bc0a399034] Former-commit-id: 8d4860e5421b5ddcb6f4d5e7dbf8acab2201f004 Former-commit-id: e6784c727c2d96c546f824e532d7849678806bc1 Former-commit-id: 5eea5a16f7d2c204eac8a222188d5bd6dc2c9888 Former-commit-id: 38d680e204109ea7e2ee2a0fb2b0461dcfc1deb6 Former-commit-id: db86d33a813106783ce551904a8fdaa1d668f173
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 |