Files
mes-ui-d2/.github/workflows/main.yml
FairyEver 8e99f5e8e9 test ci
Former-commit-id: c90e1ae9a1ff2ed0d95c88d1acdfb7cefa97345b
Former-commit-id: 115b91d603f4ccbd2cc2ea1f0b70d36d2aad506b
Former-commit-id: f8859a9aaf597d25ffb43aa7abba41893fd458bc
Former-commit-id: 539a8a57fb3d2453c639d01ac0b5a6fa9bdfdcf1 [formerly 2bc97e0fa5f424ad49865c00d26c08218e7dc43b]
Former-commit-id: 47dd1b8f0df8aa54b6ca5a53926f60735fdf07b9
Former-commit-id: 4fc19306fd8e3e66c96340762e3250a0a3f317c3
Former-commit-id: 89507767e9990fe68d7609c22718bbf4573aaac8
Former-commit-id: 1d0a64ea6f24d835b6d39764aa1fe8a34e8fd632
Former-commit-id: 241b3a4ef236223147f0752a5d0134c0783895c1
2019-11-26 10:54:27 +08:00

36 lines
1004 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