mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-11 07:51:54 +00:00
30 lines
721 B
YAML
30 lines
721 B
YAML
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}`
|