test maven build pipeline
This commit is contained in:
35
.github/workflows/build-and-publish-develop.yml
vendored
Normal file
35
.github/workflows/build-and-publish-develop.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user