Skip to content

Commit 2a561bf

Browse files
authored
Merge pull request #147 from contentstack/staging
Staging
2 parents edfa936 + e33914c commit 2a561bf

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publishing to Maven Packages
2+
#on: [ push ] # Trigger the workflow when a push (commit) event occurs
3+
on:
4+
release:
5+
types: [ created ]
6+
jobs:
7+
publish-maven:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Maven Central Repository
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '11'
18+
distribution: 'adopt'
19+
server-id: ossrh
20+
server-username: MAVEN_USERNAME
21+
server-password: MAVEN_PASSWORD
22+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
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 }}
30+
31+
# run: mvn --batch-mode deploy

src/main/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1 id="java-sdk-for-contentstack">Java SDK for Contentstack</h1>
2020
resources to get started with our Java SDK.</p>
2121
<h2 id="prerequisite">Prerequisite</h2>
2222
<p>You will need JDK installed on your machine. You can install it from <a
23-
href="http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html">here</a>.</p>
23+
href="https://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html">here</a>.</p>
2424
<h3 id="setup-and-installation">Setup and Installation</h3>
2525
<p>To use the Contentstack Java SDK to your existing project, perform the steps given below:</p>
2626
<p>Group id: <code>com.contentstack.sdk</code></p>

0 commit comments

Comments
 (0)