Liam
05535fc87e
Some checks failed
Publish package to my Maven Repository / publish (push) Failing after 11s
28 lines
699 B
YAML
28 lines
699 B
YAML
name: Publish package to my Maven Repository
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
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 }}
|
|
|
|
# Publish the package
|
|
- name: Publish package
|
|
run: mvn --batch-mode deploy
|
|
env:
|
|
MAVEN_USERNAME: ${{ secrets.REPO_USERNAME }}
|
|
MAVEN_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|