Skip to content

Commit

Permalink
💚 Fix CI GPG keys
Browse files Browse the repository at this point in the history
  • Loading branch information
SkytAsul committed Jun 27, 2024
1 parent 6f8dcab commit 0dbe5f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: maven

- uses: s4u/[email protected]
with:
servers: '[{"id": "central", "username": "${{ secrets.CENTRAL_USERNAME }}", "password": "${{ secrets.CENTRAL_TOKEN }}"}]'
server-id: central
server-username: CENTRAL_USERNAME
server-password: CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to Maven Central
run: mvn deploy
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Add this requirement to your maven `pom.xml` file:

```xml
<dependency>
<groupId>io.github.skytasul</groupId>
<groupId>fr.skytasul</groupId>
<artifactId>glowingentities</artifactId>
<version>{VERSION}</version>
<scope>compile</scope>
Expand Down

0 comments on commit 0dbe5f0

Please sign in to comment.