test maven build pipeline

This commit is contained in:
2024-08-30 01:00:54 +10:00
parent 53b70abba0
commit 06655b7cde
2 changed files with 35 additions and 24 deletions

View File

@@ -0,0 +1,35 @@
name: ci
on:
workflow_dispatch:
push:
branches:
- develop
env:
REGISTRY_IMAGE: edeedeeed/ec-config-server
jobs:
build-java:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
name: Build Java Package and Publish
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4.2.2
with:
distribution: zulu
java-version: 17
- name: Maven Publish
env:
SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }}
RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}
run: |
mvn -B deploy \
-P homelab \
--settings=${{ github.workspace }}/.mvn/settings.xml