Skip to content

Commit 687c2ad

Browse files
committed
Add publish action.
1 parent 8b97dcd commit 687c2ad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Gradle Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request_target:
8+
types: [ opened, synchronize ]
9+
10+
jobs:
11+
publish:
12+
uses: sava-software/sava-build/.github/workflows/publish.yml@main
13+
secrets: inherit
14+
15+
github-publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Publish Github Packages
19+
run: ./gradlew --stacktrace -Psign=true -PjavaVersion=${{ needs.publish.outputs.java-version }} -Pversion=${{ github.ref_name }} :json-iterator:publish
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
GPG_PUBLISH_PK: ${{ secrets.GPG_PUBLISH_PK }}
23+
GPG_PUBLISH_PF: ${{ secrets.GPG_PUBLISH_PF }}
24+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
25+
MAVEN_CENTRAL_SECRET: ${{ secrets.MAVEN_CENTRAL_SECRET }}

0 commit comments

Comments
 (0)