File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1414 secrets :
1515 server-username : ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
1616 server-password : ${{ secrets.CENTRAL_PUBLISHER_PORTAL_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 5959 fetch-depth : 0
6060
6161 - name : Set up maven or jfrog repository
62- uses : actions/setup-java@v1
62+ uses : actions/setup-java@v4
6363 with :
64- java-version : " 1.8 "
64+ java-version : " 11 "
6565 distribution : " adopt"
6666 server-id : ${{ inputs.server-id }}
6767 server-username : SERVER_USERNAME
9494 if ${{ inputs.tag == 'internal' }}; then
9595 ./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "$(git rev-parse --short "$GITHUB_SHA")"
9696 else
97- ./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"
97+ ./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "" "${{ inputs.module }}"
9898 fi
9999
100100 - name : Commit changes
@@ -133,11 +133,10 @@ jobs:
133133
134134 - name : Publish package
135135 run : |
136- if [ -n "${{ inputs.module }}" ]; then
137- mvn --batch-mode -pl v3 -am deploy -P jfrog
138- else
139- mvn --batch-mode deploy -P ${{ inputs.profile }}
140- fi
136+ if [[ "${{ inputs.tag }}" == "internal" ]]; then
137+ mvn --batch-mode -pl ${{ inputs.module }} -am deploy -P jfrog
138+ elif [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then
139+ mvn --batch-mode -pl ${{ inputs.module }} -am deploy -P ${{ inputs.profile }}
141140
142141 env :
143142 SERVER_USERNAME : ${{ secrets.server-username }}
You can’t perform that action at this time.
0 commit comments