diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39b2fab..67f941f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: Java CI -on: [push] +on: + push: jobs: build: @@ -48,6 +49,10 @@ jobs: run: lix download - name: Build with Maven - run: mvn -s settings.xml compile package deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + run: mvn compile package + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: target/keycloak-webhook-event-listener-*.jar \ No newline at end of file diff --git a/pom.xml b/pom.xml index abd9154..0223798 100644 --- a/pom.xml +++ b/pom.xml @@ -25,14 +25,6 @@ https://raw.githubusercontent.com/kevinresol/haxe-maven-plugin/mvn-repo/ - - - - github - GitHub BeeInventor Apache Maven Packages - https://maven.pkg.github.com/BeeInventor/keycloak-webhook-event-listener - - @@ -99,6 +91,19 @@ + + org.apache.maven.plugins + maven-shade-plugin + 3.2.4 + + + package + + shade + + + + \ No newline at end of file diff --git a/settings.xml b/settings.xml deleted file mode 100644 index aac484c..0000000 --- a/settings.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - github - ${env.GITHUB_ACTOR} - ${env.GITHUB_TOKEN} - - - \ No newline at end of file