update github workflows
This commit is contained in:
parent
86318c1135
commit
bd17c75c2b
2 changed files with 23 additions and 10 deletions
17
.github/workflows/build.yml
vendored
Normal file
17
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
name: Build Project
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
- '!gh-pages'
|
||||||
|
- '!master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Create a new build
|
||||||
|
run: docker build -t publisher:latest -f ./dockerfiles/Deploy.Dockerfile .
|
|
@ -1,24 +1,20 @@
|
||||||
name: CI/CD
|
name: Build & Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- 'master'
|
||||||
- '!gh-pages'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
- name: Create a new build
|
|
||||||
run: docker build -t publisher:latest -f ./dockerfiles/Deploy.Dockerfile .
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Create a new build
|
||||||
|
run: docker build -t publisher:latest -f ./dockerfiles/Deploy.Dockerfile .
|
||||||
- name: Deploy to gh-pages branch
|
- name: Deploy to gh-pages branch
|
||||||
env:
|
env:
|
||||||
REPOSITORY_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}
|
REPOSITORY_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}
|
Loading…
Reference in a new issue