Former-commit-id: a10e7798beca2f9aa48390d63cded608d9e55a78 Former-commit-id: 8e838ee59f779d27c456c501560a00ba0d4f8451 Former-commit-id: f39b9046ad9082308b6f9c99e6c0242ab980261c Former-commit-id: 2447df9a523e9a9fdd8cfb2e4ca51119adf7bfe3 [formerly c552023f97a85719074dbcc54c160e7ae51ff388] Former-commit-id: 155ba39af47720c078fcfd9ebd14cc688b5100ce Former-commit-id: 0d25be970f6cc6e4c02531e148d5822235718f46 Former-commit-id: 3c7eea67d96a23e89fa1d3b1922cfe6c69699375 Former-commit-id: ff428c1173e4efa4fdd132d72968d787698a29e1 Former-commit-id: d21e58319650766c15b3e04b7bf3077219f8a97f
31 lines
693 B
YAML
31 lines
693 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: 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 qupload ./deploy/upload.conf
|
|
./deploy/qshell cdnrefresh --dirs -i ./deploy/cdnrefresh.txt
|