35 lines
851 B
YAML
35 lines
851 B
YAML
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 |