This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
Merge pull request #281 from LIngMax/master #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '[email protected]:monlor/mbfiles.git' | |
# destination-repo: '[email protected]:monlor/mbfiles.git' | |