Pelican4J/.gitea/workflows/maven-publish.yml
Rainnny7 2f0b99110a
All checks were successful
Publish to Maven / docker (8, 3.8.5) (push) Successful in 35s
pls work i beg
2024-04-28 19:09:42 -04:00

49 lines
1.2 KiB
YAML

name: Publish to Maven
on:
push:
branches: ["master"]
paths: [".gitea/workflows/**", "src/**", "pom.xml"]
jobs:
docker:
strategy:
matrix:
java-version: ["8"]
maven-version: ["3.8.5"]
runs-on: "ubuntu-latest"
# Steps to run
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 }}
# Configure Maven settings
- name: Maven Settings
uses: s4u/maven-settings-action@v3.0.0
with:
servers: |-
[
{
"id": "rainnny-repo-public",
"username": "${{ secrets.PRIVATE_MAVEN_USER }}",
"password": "${{ secrets.PRIVATE_MAVEN_PASS }}"
}
]
# Run Maven tests
- name: Maven Tests
run: mvn test -B
# Publish to Maven
- name: Publish to Maven
run: mvn deploy -Pgen-javadocs -B -Dstyle.color=always --update-snapshots -T6C