diff --git a/.github/workflows/post-push.yml b/.github/workflows/post-push.yml
new file mode 100644
index 0000000..2aee5e2
--- /dev/null
+++ b/.github/workflows/post-push.yml
@@ -0,0 +1,85 @@
+name: Post-push actions
+
+# Run workflow only on commits to `master`
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ maven_deploy:
+ name: Deploy to Maven
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out Git repository
+ uses: actions/checkout@v1
+
+ - uses: actions/setup-java@v1
+ with:
+ java-version: '13'
+
+ - name: Release to Central Repository
+ uses: samuelmeuli/action-maven-publish@v1.3.1
+ with:
+ gpg_private_key: ${{ secrets.gpg_private_key }}
+ gpg_passphrase: ${{ secrets.gpg_passphrase }}
+ nexus_username: ${{ secrets.nexus_username }}
+ nexus_password: ${{ secrets.nexus_password }}
+
+ github_release:
+ name: Create GitHub release
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out Git repository
+ uses: actions/checkout@v1
+
+ - name: Setup JDK 13
+ uses: actions/setup-java@v1
+ with:
+ java-version: '13'
+
+ - name: Build project
+ run: mvn -B clean package
+
+ - name: Get project infos
+ id: get-project-infos
+ run: echo "::set-output name=maven_version::$(mvn -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -q)" && echo "::set-output name=maven_artifactId::$(mvn -Dexec.executable='echo' -Dexec.args='${project.artifactId}' --non-recursive exec:exec -q)"
+
+ - name: Create Release
+ id: create_release
+ uses: actions/create-release@latest
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tag_name: ${{ steps.get-project-infos.outputs.maven_version }}
+ release_name: ${{ steps.get-project-infos.outputs.maven_version }}
+
+ - name: Upload JAR asset
+ uses: actions/upload-release-asset@v1.0.1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./target/${{ steps.get-project-infos.outputs.maven_artifactId }}-${{ steps.get-project-infos.outputs.maven_version }}.jar
+ asset_name: ${{ steps.get-project-infos.outputs.maven_artifactId }}-${{ steps.get-project-infos.outputs.maven_version }}.jar
+ asset_content_type: application/java-archive
+
+ - name: Upload JavaDoc asset
+ uses: actions/upload-release-asset@v1.0.1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./target/${{ steps.get-project-infos.outputs.maven_artifactId }}-${{ steps.get-project-infos.outputs.maven_version }}-javadoc.jar
+ asset_name: ${{ steps.get-project-infos.outputs.maven_artifactId }}-${{ steps.get-project-infos.outputs.maven_version }}-javadoc.jar
+ asset_content_type: application/java-archive
+
+ - name: Upload Sources asset
+ uses: actions/upload-release-asset@v1.0.1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./target/${{ steps.get-project-infos.outputs.maven_artifactId }}-${{ steps.get-project-infos.outputs.maven_version }}-sources.jar
+ asset_name: ${{ steps.get-project-infos.outputs.maven_artifactId }}-${{ steps.get-project-infos.outputs.maven_version }}-sources.jar
+ asset_content_type: application/java-archive
\ No newline at end of file
diff --git a/README.MD b/README.MD
index 43f38f4..a9d9af2 100644
--- a/README.MD
+++ b/README.MD
@@ -1,7 +1,7 @@
Lambda2sql (lambda) -> "sql"
==========
-**Please note:** This is a Java 13 library so make sure you have at least Java 10 installed when using it.
+**Please note:** This is a Java 13 library so make sure you have at least Java 13 installed when using it.
Convert Java 8 lambdas to SQL statements.
@@ -64,7 +64,7 @@ You can include the Maven dependency:
com.github.collinalpert
lambda2sql
- 2.2.1
+ 2.2.2
```
diff --git a/pom.xml b/pom.xml
index 3972a00..eb23b6e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.github.collinalpert
lambda2sql
- 2.2.1
+ 2.2.2
jar
lambda2sql
@@ -67,7 +67,7 @@
org.junit.jupiter
junit-jupiter-api
- 5.5.1
+ 5.6.2
test
@@ -100,7 +100,7 @@
org.apache.maven.plugins
maven-source-plugin
- 3.1.0
+ 3.2.1
attach-sources
@@ -113,7 +113,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.1.1
+ 3.2.0
-html5
@@ -141,7 +141,9 @@
+ org.apache.maven.plugins
maven-assembly-plugin
+ 3.3.0
package