Skip to content

Commit

Permalink
reverting to basic settings, but use ssh action to make release:perfo…
Browse files Browse the repository at this point in the history
…rm work
  • Loading branch information
zrbrown committed Dec 28, 2023
1 parent b708001 commit f8611bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .github/github-actions-settings.xml

This file was deleted.

14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,25 @@ jobs:
with:
distribution: 'oracle'
java-version: '17'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: 'maven'
- name: Configure git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Maven Prepare Release
run: mvn --settings .github/github-actions-settings.xml --batch-mode release:clean release:prepare -Dtag=v${{ github.event.inputs.releaseVersion }} -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
run: mvn --batch-mode release:clean release:prepare -Dtag=v${{ github.event.inputs.releaseVersion }} -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: Maven Release
run: mvn --settings .github/github-actions-settings.xml --batch-mode release:perform
- uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.REPO_SSH_PRIVATE_KEY }}
name: Maven Release
run: mvn --batch-mode release:perform
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 comments on commit f8611bc

Please sign in to comment.