File tree Expand file tree Collapse file tree 4 files changed +31
-2
lines changed
Expand file tree Collapse file tree 4 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package to the Maven Central Repository
2+ on :
3+ push :
4+ tags : ' *.*.*-beta.*'
5+ jobs :
6+ build-and-deploy :
7+ uses : ./.github/workflows/shared-build-and-deploy.yml
8+ with :
9+ ref : ${{ github.ref_name }}
10+ is-internal : false
11+ server-id : ossrh
12+ profile : maven-central
13+ tag : ' beta'
14+ secrets :
15+ server-username : ${{ secrets.OSSRH_USERNAME }}
16+ server-password : ${{ secrets.OSSRH_PASSWORD }}
17+ gpg-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
18+ gpg-passphrase : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
19+ skyflow-credentials : ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
20+ test-expired-token : ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
21+ test-reusable-token : ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
Original file line number Diff line number Diff line change 11name : Publish package to the JFROG Artifactory
22on :
33 push :
4- tags : ' *.*.*'
4+ tags-ignore :
5+ - ' *.*'
56 paths-ignore :
67 - " pom.xml"
78 - " *.md"
1617 is-internal : true
1718 server-id : central
1819 profile : jfrog
20+ tag : ' internal'
1921 secrets :
2022 server-username : ${{ secrets.ARTIFACTORY_USERNAME }}
2123 server-password : ${{ secrets.ARTIFACTORY_PASSWORD }}
Original file line number Diff line number Diff line change 1010 is-internal : false
1111 server-id : ossrh
1212 profile : maven-central
13+ tag : ' public'
1314 secrets :
1415 server-username : ${{ secrets.OSSRH_USERNAME }}
1516 server-password : ${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 2121 description : " Profile to pick from pom.xml"
2222 required : true
2323 type : string
24+
25+ tag :
26+ description : ' Release Tag'
27+ required : true
28+ type : string
2429 secrets :
2530 server-username :
2631 required : true
4954 steps :
5055 - uses : actions/checkout@v2
5156 with :
52- ref : ${{ inputs.ref }}
5357 fetch-depth : 0
5458
5559 - name : Set up maven or jfrog repository
7983 fi
8084
8185 - name : Commit changes
86+ if : ${{ inputs.tag == 'internal' || inputs.tag == 'public' }}
8287 run : |
8388 git config user.name ${{ github.actor }}
8489 git config user.email ${{ github.actor }}@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments