2024-04-28 00:49:11 -07:00
|
|
|
name: Publish to Maven
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["master"]
|
2024-04-28 00:50:07 -07:00
|
|
|
paths: [".gitea/workflows/**", "src/**", "pom.xml"]
|
2024-04-28 00:49:11 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-04-28 15:58:51 -07:00
|
|
|
java-version: ["8"]
|
2024-04-28 00:49:11 -07:00
|
|
|
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
|
2024-11-03 08:02:19 -08:00
|
|
|
uses: s4u/maven-settings-action@v3.1.0
|
2024-04-28 00:49:11 -07:00
|
|
|
with:
|
|
|
|
servers: |-
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "rainnny-repo-public",
|
|
|
|
"username": "${{ secrets.PRIVATE_MAVEN_USER }}",
|
|
|
|
"password": "${{ secrets.PRIVATE_MAVEN_PASS }}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
# Publish to Maven
|
2024-04-28 16:16:41 -07:00
|
|
|
- name: Test and Publish to Maven
|
2024-04-28 16:19:10 -07:00
|
|
|
run: mvn deploy -Pgen-javadocs -B -Dstyle.color=always --update-snapshots -q -T4C
|
|
|
|
env:
|
|
|
|
TEST_PANEL_URL: ${{ secrets.TEST_PANEL_URL }}
|
|
|
|
TEST_APPS_API_KEY: ${{ secrets.TEST_APPS_API_KEY }}
|