Skip to content

Commit

Permalink
Merge pull request #11 from ing-bank/fix/tag
Browse files Browse the repository at this point in the history
fix publishing jar
  • Loading branch information
kr7ysztof authored Nov 30, 2022
2 parents 9d380eb + 905de6a commit e88f799
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 46 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,32 @@ on:
- master

jobs:
tests:
m-tests:
uses: ./.github/workflows/tests.yml

tag:
release-on-push:
needs: m-tests
runs-on: ubuntu-latest
needs: tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: rymndhng/release-on-push-action@master
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/[email protected]
bump_version_scheme: patch

publish:
needs: m-tests
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Publish package
run: mvn -DskipTests --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
VERBOSE: true
DEFAULT_BUMP: patch
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<groupId>com.ing.ranger</groupId>
<artifactId>ranger-s3-plugin</artifactId>
<version>0.4</version>
<version>v0.1.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -65,7 +65,6 @@
<scope>test</scope>
<version>${assertj.version}</version>
</dependency>

</dependencies>

<build>
Expand Down Expand Up @@ -196,4 +195,11 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/ing-bank/apache-ranger-s3-plugin</url>
</repository>
</distributionManagement>
</project>

0 comments on commit e88f799

Please sign in to comment.