Skip to content

Commit

Permalink
changed git user and added token env var
Browse files Browse the repository at this point in the history
  • Loading branch information
zrbrown committed Dec 22, 2023
1 parent aec14da commit 15a504a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ jobs:
cache: 'maven'
- name: Configure git
run: |
git config --global user.name 'zrbrown'
git config --global user.email 'zackrbrown@gmail.com'
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Maven Prepare Release
run: |
cat ~/.m2/settings.xml
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 --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 }}
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
REPO_SSH_PRIVATE_KEY_LOCATION: ~/.ssh/id_rsa
- name: Maven Release
run: mvn --settings .github/github-actions-settings.xml --batch-mode release:perform
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 15a504a

Please sign in to comment.