diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d906a5a..9743942 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}