2020-03-06 14:41:07

This commit is contained in:
monlor
2020-03-06 14:41:07 +08:00
parent e4f5c1acee
commit 9047504b18
3 changed files with 80 additions and 4 deletions

View File

@@ -1,35 +0,0 @@
name: Main-CI
# on: [push, pull_request]
on:
push:
branchs:
- master
- test
tags-ignore:
- deploy-*
- test-*
- master-*
ignore-paths:
- '.github'
- 'README.md'
pull_request:
branchs:
- master
jobs:
publish:
runs-on: ubuntu-latest
env:
GH_REF: ${{ secrets.GH_REF }}
CO_REF: ${{ secrets.CO_REF }}
BRANCH_NAME: ${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Pack And Deploy
run: |
bash ./tools/gitsync.sh pack
bash ./tools/gitsync.sh deploy mbfiles `basename ${BRANCH_NAME}` ${GH_REF}
bash ./tools/gitsync.sh deploy mbfiles `basename ${BRANCH_NAME}` ${CO_REF}