Files
mes-ui-d2/.github/workflows/main.yml
FairyEver 5d69a35dce test ci
Former-commit-id: fe003a5e06460d3d03c9ca69309c3dc4874727b4
Former-commit-id: 8a25a37c5883620416c0a1f14eb88108152255c2
Former-commit-id: b1fe0e01899ef5cd3bccb6cf1befe08f57721bce
Former-commit-id: 51184aa62b59bcae1a0720e974a980b904f2f47f [formerly f244b8be8438afac004709637065d7af5a039d0f]
Former-commit-id: 54c2cf007b06a9c9b569c6b2577f2087c95d1de5
Former-commit-id: d9f706c0c7356fd2b3788c7bb5695a348e9b0b7c
Former-commit-id: d3c4b594c94d51faa01fcc130c09263ad707ff1a
Former-commit-id: 9e0867b2f0d83d90149475e2ccbba13acb8d685d
Former-commit-id: 9cf6fe999bc3ae00696966f12a075b40f30cd67b
2019-11-26 10:56:34 +08:00

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