Create build_and_deploy.yml

This commit is contained in:
Gauthier 2019-09-13 14:35:22 +08:00 committed by GitHub
parent c53addc9c7
commit e46ca44b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

32
.github/workflows/build_and_deploy.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Deploy to DockerHub
on:
push:
branches:
- master
paths:
- '*'
- '!*.md'
- '!.travis.yml
- '!./github/*/*'
- '!./doc/*'
- '!.idea/runConfigurations/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-java@v1
with:
java-version: '1.8'
- run: ./gradlew build
deploy_dockerhub:
name: Deploy to DockerHub
needs: build
runs-on: ubuntu-latest
steps:
- run: echo Triggered by ${{ github.ref }}