Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release-v1.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/shared-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.skyflow</groupId>
<artifactId>skyflow-java</artifactId>
<version>1.15.1</version>
<version>1.15.0</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down
Loading