Files
MIXBOX-ARCHIVE/.github/workflows/main.yml
2020-05-28 13:34:25 +08:00

61 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Main-CI
# on: [push, pull_request]
on:
push:
branchs:
- master
- test
- dev
paths-ignore:
# - '.github/**'
- 'README.md'
- 'changelog.md'
# pull_request:
# branchs:
# - master
# - test
# - dev
env:
BRANCH_NAME: ${{ github.ref }}
CO_REF: ${{ secrets.CO_REF }}
GH_REF: ${{ secrets.GH_REF }}
jobs:
coding-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Deploy To Coding
run: |
test ! -d mbfiles && git clone -b `basename ${BRANCH_NAME}` ${CO_REF}
./tools/gitsync.sh pack
./tools/gitsync.sh deploy_lfs mbfiles `basename ${BRANCH_NAME}` ${CO_REF}
github-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Deploy To GitHub
run: |
test ! -d mbfiles && git clone -b `basename ${BRANCH_NAME}` ${GH_REF}
./tools/gitsync.sh pack
./tools/gitsync.sh deploy mbfiles `basename ${BRANCH_NAME}` ${GH_REF}
# gitee空间限制不再使用
# gitee-deploy:
# runs-on: ubuntu-latest
# needs: github-deploy
# steps:
# - name: Sync To Gitee
# uses: wearerequired/git-mirror-action@v1
# env:
# SSH_PRIVATE_KEY: ${{ secrets.GE_TOKEN }}
# with:
# source-repo: 'git@github.com:monlor/mbfiles.git'
# destination-repo: 'git@gitee.com:monlor/mbfiles.git'