Skip to content

Commit f17e4fb

Browse files
committed
do not deploy snapshot for bug/feature branches
1 parent 10af1dc commit f17e4fb

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
- 1.*
8+
- 2.*
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up JDK 1.8
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 1.8
21+
22+
- name: Build with Maven
23+
run: mvn -B install --no-transfer-progress -Dmaven.javadoc.skip=true

.github/workflows/build.yml renamed to .github/workflows/build-main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: build
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 1.*
8+
- 2.*
49

510
jobs:
611
build:
@@ -15,7 +20,7 @@ jobs:
1520
java-version: 1.8
1621

1722
- name: Build with Maven
18-
run: mvn -B install --no-transfer-progress --file pom.xml
23+
run: mvn -B install --no-transfer-progress -Dmaven.javadoc.skip=true
1924

2025
publish-snapshot:
2126
needs: build

0 commit comments

Comments
 (0)