Skip to content

Commit f4f4485

Browse files
SK-1815 workflow for beta release
1 parent 1363630 commit f4f4485

File tree

4 files changed

+31
-2
lines changed

4 files changed

+31
-2
lines changed

.github/workflows/beta-release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

.github/workflows/internal-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Publish package to the JFROG Artifactory
22
on:
33
push:
4-
tags: '*.*.*'
4+
tags-ignore:
5+
- '*.*'
56
paths-ignore:
67
- "pom.xml"
78
- "*.md"
@@ -16,6 +17,7 @@ jobs:
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 }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
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 }}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
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
@@ -49,7 +54,6 @@ jobs:
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
@@ -79,6 +83,7 @@ jobs:
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

0 commit comments

Comments
 (0)