mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-12 00:11:36 +00:00
2020-03-05 22:13:57
This commit is contained in:
29
.github/workflows/dev.yaml
vendored
Normal file
29
.github/workflows/dev.yaml
vendored
Normal 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}`
|
||||
Reference in New Issue
Block a user