Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Awambeng committed Jan 21, 2025
1 parent 08a22ed commit 9429ed1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/maven-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish package to the Maven Central Repository
on:
release:
types: [created]

permissions:
contents: write

jobs:
build:
Expand Down Expand Up @@ -35,7 +38,6 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_USER_NAME: ${{ vars.GIT_USER_NAME }}

steps:
Expand All @@ -50,10 +52,6 @@ jobs:
server-id: sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Set up Git for authentication
run: |
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"

- name: Set up GPG for signing
run: |
Expand Down

0 comments on commit 9429ed1

Please sign in to comment.