Skip to content

Commit 45c7a50

Browse files
publish
1 parent c6e03bf commit 45c7a50

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: Publish package to the Maven Central Repository
22
on:
3-
# release:
4-
# types: [created]
5-
push:
6-
branches: [ "master" ]
7-
pull_request:
8-
branches: [ "master" ]
3+
release:
4+
types: [created]
5+
96
jobs:
107
publish:
118
runs-on: ubuntu-latest
@@ -35,12 +32,12 @@ jobs:
3532
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3633
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
3734
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_IV }}
38-
# - name: Set up Java for publishing to GitHub Packages
39-
# uses: actions/setup-java@v3
40-
# with:
41-
# java-version: 8
42-
# distribution: 'adopt'
43-
# - name: Publish to GitHub Packages
44-
# run: mvn --batch-mode deploy -P github
45-
# env:
46-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- name: Set up Java for publishing to GitHub Packages
36+
uses: actions/setup-java@v3
37+
with:
38+
java-version: 8
39+
distribution: 'adopt'
40+
- name: Publish to GitHub Packages
41+
run: mvn --batch-mode deploy -P github
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.CodeTrainerMan</groupId>
88
<artifactId>web3utils</artifactId>
9-
<version>1.0.14</version>
9+
<version>1.0.1</version>
1010
<name>web3utils</name>
1111
<description>java web3 tools</description>
1212
<url>https://github.com/CodeTrainerMan/Web3Utils</url>

0 commit comments

Comments
 (0)