From e46ca44b28c6baadc95a8c4c8e1cc2b2ebda5af9 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Fri, 13 Sep 2019 14:35:22 +0800 Subject: [PATCH] Create build_and_deploy.yml --- .github/workflows/build_and_deploy.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build_and_deploy.yml diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml new file mode 100644 index 000000000..55149687b --- /dev/null +++ b/.github/workflows/build_and_deploy.yml @@ -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 }}