Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/deploy-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ inputs:
revision:
description: "The revision of cds-feature-attachments"
required: true
maven-version:
description: "The Maven version the build shall run with."
required: true

runs:
using: composite
Expand All @@ -31,6 +34,7 @@ runs:
run: |
echo "user: ${{ inputs.user }}"
echo "profile: ${{ inputs.profile }}"
echo "revision: ${{ inputs.revision }}"
shell: bash

- name: "Setup Java"
Expand All @@ -43,6 +47,11 @@ runs:
server-username: MAVEN_CENTRAL_USER
server-password: MAVEN_CENTRAL_PASSWORD

- name: Setup Maven ${{ inputs.maven-version }}
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ inputs.maven-version }}

- name: "Import GPG Key"
run: |
echo "${{ inputs.pgp-private-key }}" | gpg --batch --passphrase "$PASSPHRASE" --import
Expand Down
21 changes: 12 additions & 9 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ inputs:
description: "The path to the POM file."
required: false
default: "pom.xml"
maven-version:
description: "The Maven version the build shall run with."
required: true

runs:
using: composite
Expand All @@ -28,6 +31,7 @@ runs:
echo "user: ${{ inputs.user }}"
echo "password: ${{ inputs.password }}"
echo "pom-file: ${{ inputs.pom-file }}"
echo "altDeploymentRepository: ${{inputs.server-id}}::${{inputs.repository-url}}"
shell: bash

- name: "Setup java"
Expand All @@ -39,19 +43,18 @@ runs:
server-username: DEPLOYMENT_USER
server-password: DEPLOYMENT_PASS

- name: Setup Maven ${{ inputs.maven-version }}
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ inputs.maven-version }}

- name: "Publish package"
run: >
mvn
--batch-mode
--no-transfer-progress
--fail-at-end
-Durl=${{ inputs.repository-url }}
-DrepositoryId=${{ inputs.server-id }}
mvn -B -ntp --fae
-pl !integration-tests,!integration-tests/db,!integration-tests/srv
-DaltDeploymentRepository=${{inputs.server-id}}::${{inputs.repository-url}}
-Dmaven.install.skip=true
-Dmaven.test.skip=true
-Dmaven.compiler.showCompilationChanges
-Dhttp.keepAlive=false
-DskipDuringDeploy=true
-f ${{ inputs.pom-file }}
deploy
env:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/main-build-and-deploy-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- run: echo "Start deployment to Maven Central"
name: deploy start

- name: Download artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -94,6 +91,7 @@ jobs:
pgp-private-key: ${{ secrets.PGP_PRIVATE_KEY }}
pgp-passphrase: ${{ secrets.PGP_PASSPHRASE }}
revision: ${{ github.event.release.tag_name }}
maven-version: ${{ env.MAVEN_VERSION }}

- name: Echo Status
run: echo "The job status is ${{ job.status }}"
3 changes: 2 additions & 1 deletion .github/workflows/main-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ jobs:
user: ${{ secrets.DEPLOYMENT_USER }}
password: ${{ secrets.DEPLOYMENT_PASS }}
server-id: artifactory
repository-url: ${{ env.DEPLOY_REPOSITORY_ID }}
repository-url: ${{ env.DEPLOY_REPOSITORY_URL }}
pom-file: ${{ env.POM_FILE }}
maven-version: ${{ env.MAVEN_VERSION }}

- name: Echo Status
run: echo "The job status is ${{ job.status }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ cds-feature-attachments/src/test/resources/schema.sql
## files required for local execution of github actions with act
.env
.secrets
event.json