diff --git a/.github/workflows/internal-release.yml b/.github/workflows/internal-release.yml
index 1e26a801..86562777 100644
--- a/.github/workflows/internal-release.yml
+++ b/.github/workflows/internal-release.yml
@@ -1,12 +1,11 @@
name: Publish package to the JFROG Artifactory
on:
push:
- tags: '*.*.*'
paths-ignore:
- "pom.xml"
- "*.md"
branches:
- - release/*
+ - release/**
jobs:
build-and-deploy:
diff --git a/.github/workflows/release-v1.yml b/.github/workflows/release-v1.yml
new file mode 100644
index 00000000..1646bea0
--- /dev/null
+++ b/.github/workflows/release-v1.yml
@@ -0,0 +1,19 @@
+name: Publish v1 package to the Maven Central Repository
+on:
+ push:
+ tags:
+ - '1.*.*'
+jobs:
+ build-and-deploy:
+ uses: ./.github/workflows/shared-build-and-deploy.yml
+ with:
+ ref: ${{ github.ref_name }}
+ is-internal: false
+ target-branch: v1
+ server-id: ossrh
+ profile: maven-central
+ secrets:
+ server-username: ${{ secrets.OSSRH_USERNAME }}
+ server-password: ${{ secrets.OSSRH_PASSWORD }}
+ gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
+ gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f978c067..1829c6f5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,13 +1,15 @@
name: Publish package to the Maven Central Repository
on:
push:
- tags: '*.*.*'
+ tags:
+ - '[2-9]*.*.*'
jobs:
build-and-deploy:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
is-internal: false
+ target-branch: main
server-id: ossrh
profile: maven-central
secrets:
diff --git a/.github/workflows/shared-build-and-deploy.yml b/.github/workflows/shared-build-and-deploy.yml
index 22456b4c..8db92b09 100644
--- a/.github/workflows/shared-build-and-deploy.yml
+++ b/.github/workflows/shared-build-and-deploy.yml
@@ -7,6 +7,12 @@ on:
required: true
type: string
+ target-branch:
+ description: 'Branch to push the version bump commit back to'
+ required: false
+ type: string
+ default: 'main'
+
is-internal:
description: 'Flag for internal release'
required: true
@@ -79,7 +85,7 @@ jobs:
git push origin ${{ github.ref_name }} -f
else
git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
- git push origin
+ git push origin HEAD:${{ inputs.target-branch }}
fi
- name: Create env
diff --git a/pom.xml b/pom.xml
index a478ab04..a3ee8f0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.skyflow
skyflow-java
- 1.15.1
+ 1.15.0
jar
${project.groupId}:${project.artifactId}