Skip to content

Commit

Permalink
testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Aug 21, 2024
1 parent 75f1efd commit c186205
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Java CI with Maven

on:
push:
branches: [ master ]
branches: [ test ]

jobs:
release:
Expand All @@ -31,18 +31,6 @@ jobs:
chmod +x ./service_config/version_check.sh
./service_config/version_check.sh

- name: Install dependencies
run: mvn clean install -Dgpg.skip

- name: Deploy and Release artifact
run: |
if [ -z ${{ env.ARTIFACTS_TO_BE_RELEASED}} ]; then
echo "No artifacts to be released."
else
echo "Releasing artifacts: ${{ env.ARTIFACTS_TO_BE_RELEASED }}"
mvn clean deploy -Dgpg.keyname=${{ secrets.MAVEN_GPG_KEYNAME }} -pl ${{ env.ARTIFACTS_TO_BE_RELEASED }}
fi
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: List
run: echo $ARTIFACTS_TO_BE_RELEASED

0 comments on commit c186205

Please sign in to comment.