diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8c03a861e..5d6ad0b112 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,6 +97,9 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + run: | + git config user.name github-actions + git config user.email github-actions@github.com - name: Init Hermit uses: cashapp/activate-hermit@v1 # Ideally we'd use Hermit's JDK, but this action creates the correct settings.xml for us. @@ -104,12 +107,10 @@ jobs: with: java-version: "11" distribution: "temurin" - - name: Set Git Config - run: | - git config user.email "${{ github.actor }}@users.noreply.github.com" - git config user.name "${{ github.actor }}" - git checkout main - name: Publish JARs + with: + username: ${{ github.actor }} + password: ${{ github.token }} run: | mvn release:clean release:prepare release:perform \ --batch-mode \