Liam
b0b45723b2
All checks were successful
Publish package to my Maven Repository / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 19s
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Publish package to my Maven Repository
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- .gitignore
|
|
- README.md
|
|
- LICENSE
|
|
|
|
jobs:
|
|
docker:
|
|
strategy:
|
|
matrix:
|
|
arch: ["ubuntu-latest"]
|
|
git-version: ["2.44.0"]
|
|
java-version: ["17"]
|
|
maven-version: ["3.8.5"]
|
|
runs-on: ${{ matrix.arch }}
|
|
steps:
|
|
# Checkout the repo
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# Setup Java and Maven
|
|
- name: Set up JDK and Maven
|
|
uses: s4u/setup-maven-action@v1.12.0
|
|
with:
|
|
java-version: ${{ matrix.java-version }}
|
|
distribution: "zulu"
|
|
maven-version: ${{ matrix.maven-version }}
|
|
|
|
# Setup Maven settings
|
|
- name: Setup Maven settings
|
|
uses: s4u/maven-settings-action@v3.0.0
|
|
with:
|
|
servers: |
|
|
[{
|
|
"id": "mcutils-java-library",
|
|
"username": "${{ secrets.REPO_USERNAME }}",
|
|
"password": "${{ secrets.REPO_PASSWORD }}"
|
|
}]
|
|
|
|
# Publish the package
|
|
- name: Publish package
|
|
run: mvn deploy -Pgen-javadocs -B -Dstyle.color=always --update-snapshots -e
|