diff --git a/.gitea/workflows/maven-publish.yml b/.gitea/workflows/maven-publish.yml new file mode 100644 index 0000000..1406e69 --- /dev/null +++ b/.gitea/workflows/maven-publish.yml @@ -0,0 +1,37 @@ +name: Maven Publish + +on: + push: + branches: [master] + +jobs: + publish: + name: Publish to Maven + strategy: + matrix: + arch: [ubuntu-latest] + git-version: ["2.41.0 "] + runs-on: ${{ matrix.arch }} + + # Steps + steps: + # Checkout the repo + - name: Checkout + uses: https://github.com/actions/checkout@v2 + + # Set up JDK 8 + - name: Set up JDK + uses: https://github.com/actions/setup-java@v3.12.0 + with: + distribution: zulu + java-version: 8 + + # Setup Maven + - name: Set up Maven + uses: https://github.com/stCarolas/setup-maven@v4.5 + with: + maven-version: 3.9.4 + + # Publish to Maven + - name: Publish to Maven + run: mvn deploy -B -Dstyle.color=always --update-snapshots \ No newline at end of file