Former-commit-id: ff76f3e45505fe237615278bce51ee0bf434a997 Former-commit-id: fb6ccfe5c153212bc27b7de1ffa94b05d17d9b92 Former-commit-id: 615a37aca2a61787448e1eaa3af01eff905dcf4b Former-commit-id: 834fb009d3e06c318caea48ee881c744b900ce1c [formerly 8c7cb506eeaf2d5eeaf6bfe697d79ff9ef698650] Former-commit-id: 95b36d5d04f82ba2364a7be754c0cdd3a7f051e3 Former-commit-id: 6f0b0af0128d6e2658ab7ab232eaa8085d798be1 Former-commit-id: 00220c18a22ff1fe8fed3ab0c23875379599f66f Former-commit-id: df13000ccdc518a7bafa4d9aa9bed41810c5124d Former-commit-id: 4eb5687719b0974b86b33de53248e193eb63e91f
36 lines
1022 B
YAML
36 lines
1022 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=/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 |