Skip to content

Commit

Permalink
Use maven wrapper in Github Action
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Boisnard <[email protected]>
  • Loading branch information
mboisnard committed Feb 14, 2021
1 parent eef5884 commit 7fdd498
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
java-version: 8

- name: Build with Maven
run: mvn -B clean verify
run: ./mvnw -B clean verify
14 changes: 7 additions & 7 deletions .github/workflows/tag.yaml → .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Keycloak FranceConnect tags
name: Keycloak FranceConnect Tag

on:
push:
Expand All @@ -25,10 +25,10 @@ jobs:
java-version: 8

- name: Set current version
run: mvn -B versions:set -DnewVersion=${GITHUB_REF##*/}
run: ./mvnw -B versions:set -DnewVersion=${GITHUB_REF##*/}

- name: Build with Maven
run: mvn -B clean verify
run: ./mvnw -B clean verify

- name: Upload jar
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
Expand All @@ -72,7 +72,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/keycloak-franceconnect-${{ steps.get_version.outputs.VERSION }}-javadoc.jar
asset_name: keycloak-franceconnect-${{ steps.get_version.outputs.VERSION }}-javadoc.jar
asset_content_type: jar
Expand All @@ -82,7 +82,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/keycloak-franceconnect-${{ steps.get_version.outputs.VERSION }}-sources.jar
asset_name: keycloak-franceconnect-${{ steps.get_version.outputs.VERSION }}-sources.jar
asset_content_type: jar
Expand All @@ -92,7 +92,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/keycloak-franceconnect-${{ steps.get_version.outputs.VERSION }}.jar
asset_name: keycloak-franceconnect-${{ steps.get_version.outputs.VERSION }}.jar
asset_content_type: jar

0 comments on commit 7fdd498

Please sign in to comment.