Skip to content

Commit e88f799

Browse files
authored
Merge pull request #11 from ing-bank/fix/tag
fix publishing jar
2 parents 9d380eb + 905de6a commit e88f799

File tree

4 files changed

+32
-46
lines changed

4 files changed

+32
-46
lines changed

.github/workflows/master.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,32 @@ on:
66
- master
77

88
jobs:
9-
tests:
9+
m-tests:
1010
uses: ./.github/workflows/tests.yml
1111

12-
tag:
12+
release-on-push:
13+
needs: m-tests
1314
runs-on: ubuntu-latest
14-
needs: tests
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1517
steps:
16-
- uses: actions/checkout@v2
18+
- uses: rymndhng/release-on-push-action@master
1719
with:
18-
fetch-depth: '0'
19-
- name: Bump version and push tag
20-
uses: anothrNick/[email protected]
20+
bump_version_scheme: patch
21+
22+
publish:
23+
needs: m-tests
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
packages: write
28+
steps:
29+
- uses: actions/checkout@v3
30+
- uses: actions/setup-java@v3
31+
with:
32+
java-version: '8'
33+
distribution: 'adopt'
34+
- name: Publish package
35+
run: mvn -DskipTests --batch-mode deploy
2136
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
WITH_V: true
24-
VERBOSE: true
25-
DEFAULT_BUMP: patch
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Checkout
99
uses: actions/checkout@v3
10-
- name: Set up JDK 11
10+
- name: Set up JDK 8
1111
uses: actions/setup-java@v3
1212
with:
1313
java-version: '8'

pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<groupId>com.ing.ranger</groupId>
2222
<artifactId>ranger-s3-plugin</artifactId>
23-
<version>0.4</version>
23+
<version>v0.1.0</version>
2424

2525
<properties>
2626
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -65,7 +65,6 @@
6565
<scope>test</scope>
6666
<version>${assertj.version}</version>
6767
</dependency>
68-
6968
</dependencies>
7069

7170
<build>
@@ -196,4 +195,11 @@
196195
</plugin>
197196
</plugins>
198197
</build>
198+
<distributionManagement>
199+
<repository>
200+
<id>github</id>
201+
<name>GitHub Packages</name>
202+
<url>https://maven.pkg.github.com/ing-bank/apache-ranger-s3-plugin</url>
203+
</repository>
204+
</distributionManagement>
199205
</project>

0 commit comments

Comments
 (0)