mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-12 00:11:36 +00:00
2020-03-06 14:41:07
This commit is contained in:
32
.github/workflows/main.yml
vendored
Normal file
32
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Main-CI
|
||||
|
||||
# on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branchs:
|
||||
- master
|
||||
- test
|
||||
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: |
|
||||
git clone -b `basename ${BRANCH_NAME}` ${GH_REF}
|
||||
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}
|
||||
Reference in New Issue
Block a user