Files
mes-ui-d2/.github/workflows/main.yml
FairyEver ca2933cea6 test ci
Former-commit-id: d97019bfbfda25b52767bbe39c0594a8f669ca0c
Former-commit-id: effa05283a8a4677b57185ab6f7ad1e4bf16cc61
Former-commit-id: 70df5096257808e1bf6dba28b185180ca810b0b6
Former-commit-id: d94b425ba1222fe903b078de3b91e3e27a96c986 [formerly aebdd179103731a32e5717be39187442daee08d7]
Former-commit-id: 4ae5436e2518aa261c52c5154296337cf20b2436
Former-commit-id: 55ec08f030940366ee0725c0cf8800da7b4e0305
Former-commit-id: 4292107c68ecbef25072e2a731c1d99b79f2a721
Former-commit-id: 84b21973168f886a311133d1adad4fdbec43d57f
Former-commit-id: edd38168522af34b9b4c2e6ffa77a0e016e45a16
2019-11-26 11:04:28 +08:00

36 lines
999 B
YAML

name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: test
run: echo $GITHUB_WORKSPACE
- name: test folder
run: |
cd $GITHUB_WORKSPACE
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=GITHUB_WORKSPACE/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