Skip to content

Commit 5ade3f8

Browse files
authored
Merge pull request #111 from contentstack/next
Next
2 parents 324a296 + 4035757 commit 5ade3f8

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/maven--package-publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ jobs:
1717
java-version: '11'
1818
distribution: 'adopt'
1919
server-id: ossrh
20-
server-username: ${{ secrets.OSSRH_USERNAME }}
21-
server-password: ${{ secrets.OSSRH_TOKEN }}
20+
server-username: MAVEN_USERNAME
21+
server-password: MAVEN_PASSWORD
2222
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
23-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
24-
- name: Publish package
25-
run: mvn clean deploy
23+
gpg-passphrase: GPG_PASSPHRASE
24+
- name: Publish to Maven Central Repository
25+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
26+
env:
27+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
28+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
29+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2630

2731
# run: mvn --batch-mode deploy

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012 - 2023 Contentstack
3+
Copyright (c) 2012 - 2024 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)