mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
2020-03-05 22:13:57
This commit is contained in:
15
.github/workflows/deploy.yaml
vendored
15
.github/workflows/deploy.yaml
vendored
@@ -42,18 +42,3 @@ jobs:
|
||||
bash ./tools/gitsync.sh deploy mbfiles ${BRANCH_NAME} ${GH_REF}
|
||||
bash ./tools/gitsync.sh deploy mbfiles ${BRANCH_NAME} ${CO_REF}
|
||||
|
||||
dev-job:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Pack And Deploy
|
||||
env:
|
||||
BRANCH_NAME: dev
|
||||
run: |
|
||||
git fetch origin ${BRANCH_NAME}
|
||||
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}
|
||||
|
||||
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}`
|
||||
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -6,7 +6,6 @@ on:
|
||||
branchs:
|
||||
- master
|
||||
- test
|
||||
- dev
|
||||
ignore-paths:
|
||||
- '.github'
|
||||
- 'README.md'
|
||||
@@ -25,6 +24,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Sync Code
|
||||
run: git push http://${GL_TOKEN}@${GL_URL}/monlor/mixbox.git `basename ${BRANCH_NAME}`:`basename ${BRANCH_NAME}`
|
||||
|
||||
- name: Pack And Deploy
|
||||
run: |
|
||||
bash ./tools/gitsync.sh pack
|
||||
|
||||
1
.github/workflows/master.yaml
vendored
1
.github/workflows/master.yaml
vendored
@@ -20,6 +20,7 @@ jobs:
|
||||
env:
|
||||
BRANCH_NAME: master
|
||||
run: |
|
||||
git fetch origin ${BRANCH_NAME}
|
||||
git checkout ${BRANCH_NAME}
|
||||
bash ./tools/gitsync.sh pack
|
||||
bash ./tools/gitsync.sh deploy mbfiles ${BRANCH_NAME} ${GH_REF}
|
||||
|
||||
Reference in New Issue
Block a user