2020-03-05 19:33:09

This commit is contained in:
monlor
2020-03-05 19:33:09 +08:00
parent 2e0f81be7a
commit 03c5446544
7 changed files with 65 additions and 53 deletions

27
.github/workflows/master.yaml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Master-CI
on:
push:
tags:
- master-*
env:
GH_REF: ${{ secrets.GH_REF }}
CO_REF: ${{ secrets.CO_REF }}
jobs:
master-job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Pack And Deploy
env:
BRANCH_NAME: master
run: |
git checkout ${BRANCH_NAME}
bash ./tools/gitsync.sh pack
bash ./tools/gitsync.sh deploy mbfiles ${BRANCH_NAME} ${GH_REF}
bash ./tools/gitsync.sh deploy mbfiles ${BRANCH_NAME} ${CO_REF}