Skip to content

Commit 906194c

Browse files
snapshot
1 parent fcd4cac commit 906194c

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,18 @@ jobs:
1717
server-username: MAVEN_USERNAME
1818
server-password: MAVEN_PASSWORD
1919
gpg-passphrase: GPG_PASSPHRASE
20-
- name: Build and Test
21-
run: |
22-
mvn clean test jacoco:report
23-
mvn -B verify -P coverage --no-transfer-progress
24-
- name: Publish Coverage Report
25-
uses: actions/upload-artifact@v2
26-
with:
27-
name: Coverage Report
28-
path: target/site/jacoco/index.html
2920
- name: Publish to the Maven Central Repository
3021
run: mvn --batch-mode deploy
3122
env:
3223
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3324
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3425
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
35-
- name: Publish to the Maven Central Repository
36-
run: mvn --batch-mode deploy
37-
env:
38-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
39-
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
4026
- name: Set up Java for publishing to GitHub Packages
41-
uses: actions/setup-java@v3
42-
with:
43-
java-version: '11'
44-
distribution: 'adopt'
45-
- name: Publish to GitHub Packages
4627
run: mvn --batch-mode deploy
4728
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
- name: Publish Coverage Report
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: Coverage Report
34+
path: target/site/jacoco/index.html

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>cms</artifactId>
77
<packaging>jar</packaging>
88
<name>contentstack-management-java</name>
9-
<version>1.1.1-SNAPSHOT</version>
9+
<version>1.1.2-SNAPSHOT</version>
1010
<description>Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an
1111
API-first approach
1212
</description>

0 commit comments

Comments
 (0)