Former-commit-id: e2b304d2db59d5d2c7c6fce4789d14e8bda4a056 Former-commit-id: 12fe8c5b5aec108a0359f58761932a78196cd8d2 Former-commit-id: 313495de85b3e7f14887a089ec573bf8b97352e2 Former-commit-id: 51394a75974fc0f30ca7161690aff16822236657 [formerly d4425f8f5d6527d231e42dd022bffc4b94d0da79] Former-commit-id: 102fc66146500d7635686fcd193dcc700ab7be8f Former-commit-id: f0eb89c3f51f1e1ae422a5cd05d7c68be3223377 Former-commit-id: 28418e49e09ca3b1d55c15c20e36df83a685df9d Former-commit-id: 7a20aab08a1540f9b623a6ea169766b648f5ff50 Former-commit-id: fecfde690bc4087208f0f52c3b930d3c3c760336
36 lines
1010 B
YAML
36 lines
1010 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: test
|
|
run: echo ${{ HOME }}
|
|
- name: test folder
|
|
run: |
|
|
cd ${{ HOME }}
|
|
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=/home/travis/build/d2-projects/d2-admin/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 |