2020-03-05 22:13:57

This commit is contained in:
monlor
2020-03-05 22:13:57 +08:00
parent fd58755c7e
commit 552744aead
4 changed files with 33 additions and 16 deletions

29
.github/workflows/dev.yaml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Dev-CI
# on: [push, pull_request]
on:
push:
branchs:
- dev
ignore-paths:
- '.github'
- 'README.md'
jobs:
publish:
runs-on: ubuntu-latest
env:
GL_TOKEN: ${{ secrets.GL_TOKEN }}
GL_URL: ${{ secrets.GL_URL }}
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}` http://${GL_TOKEN}@${GL_URL}/monlor/mbfiles.git
- name: Sync Code
run: git push http://${GL_TOKEN}@${GL_URL}/monlor/mixbox.git `basename ${BRANCH_NAME}`:`basename ${BRANCH_NAME}`