Skip to content

Commit

Permalink
Merge pull request #191 from tst-labs/BUILD-PUBLISH
Browse files Browse the repository at this point in the history
Separa o fluxo de build do de publish
  • Loading branch information
calimaborges authored Aug 27, 2021
2 parents 81490bd + f1f0ac0 commit 0d41d32
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml → .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: build
on: [push]
name: build and publish
on:
push:
branches:
- master
- main
tags:
- "v*"
jobs:
build:
publish:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -16,7 +22,7 @@ jobs:
distribution: "adopt"

- name: Build with Maven
run: mvn -B install
run: mvn -B package

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build
on:
push:
branches:
- "*"
- "!master"
- "!main"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v2

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: "8"
distribution: "adopt"

- name: Build with Maven
run: mvn -B verify

0 comments on commit 0d41d32

Please sign in to comment.