diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml
index dab69fe..c1e4f25 100644
--- a/.github/workflows/maven-publish.yml
+++ b/.github/workflows/maven-publish.yml
@@ -3,9 +3,14 @@
name: Maven Package
+#on:
+# release:
+# types: [created]
+
on:
- release:
- types: [created]
+ push:
+ branches: ["main"]
+ workflow_dispatch:
jobs:
build:
@@ -17,10 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- - name: Set up JDK 11
+ - name: Set up JDK 8
uses: actions/setup-java@v3
with:
- java-version: '11'
+ java-version: '8'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
diff --git a/pom.xml b/pom.xml
index daab268..95f409c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,8 +9,8 @@
1.0-SNAPSHOT
- 20
- 20
+ 8
+ 8
UTF-8