update github workflows

This commit is contained in:
Matteias Collet 2020-06-29 23:38:43 +02:00
parent 86318c1135
commit bd17c75c2b
2 changed files with 23 additions and 10 deletions

17
.github/workflows/build.yml vendored Normal file
View 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 .

View file

@ -1,24 +1,20 @@
name: CI/CD
name: Build & Deploy
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 .
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
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
env:
REPOSITORY_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}