Former-commit-id: f2282b771aadd2b52329dda3577c131ab963b15d Former-commit-id: 9459b0e27ce1a6b0f0b78997406ff6562bb9004d Former-commit-id: febbd87733e920b602883846aadeb1688908f010 Former-commit-id: 106a71e9e81eb1343c6d2fe17afe802dc121ce54 [formerly ee82d358d20fb5d0d9fbad5f95e1127c7256228f] Former-commit-id: e2ed9c21b2e0c4d20dc910a89ee7a990b5a853aa Former-commit-id: 2fbbb279f306a642d6bf29bdc0b26f1e03588cac Former-commit-id: 31f838d7badd4f571f313c383be9a8f602daad65 Former-commit-id: 96474f0e51897052d7a8daee5a092e251aec2d67 Former-commit-id: 2e69d128d1b2a833b9ae92f9953c431599dd1002
29 lines
648 B
YAML
29 lines
648 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- 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: Build Code
|
|
run: yarn run build:travis
|
|
- name: Deploy to CDN
|
|
run: |
|
|
./deploy/qshell account ${{ secrets.AK }} ${{ secrets.SK }} liyang
|
|
./deploy/qshell qupload ./deploy/upload.conf
|
|
./deploy/qshell cdnrefresh --dirs -i ./deploy/cdnrefresh.txt
|