Skip to content

Commit 7af620b

Browse files
SK-2276: update shared build and deploy for v3 sdk
1 parent d9631e4 commit 7af620b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/beta-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ jobs:
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

.github/workflows/shared-build-and-deploy.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
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
@@ -94,7 +94,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)