Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
caa3b1c
SK-1663 Basic scaffolding and project structure for v2
skyflow-vivek Sep 17, 2024
f44be85
SK-1663 Worked on feedback for scaffolding
skyflow-vivek Sep 17, 2024
f9df247
SK-1663 Moved main dir to src dir
skyflow-vivek Sep 18, 2024
35762d2
SK-1663 Scaffolding for java sdk v2
skyflow-vivek Sep 19, 2024
45d96f9
SK-1663 Java sdk v2 scaffolding worked on feedback
skyflow-vivek Sep 19, 2024
ad543ad
SK-1663 Update method signatures for all controllers
skyflow-vivek Sep 19, 2024
f44c1f7
SK-1663 Worked on feedback for java sdk v2 scafolding
skyflow-vivek Sep 25, 2024
9eba2dd
SK-1677 Delete old vault controller implementation
skyflow-vivek Oct 1, 2024
f7ee304
SK-1677 Client Initilisation and Credentials priorotisation
skyflow-vivek Oct 1, 2024
786055d
SK-1677 Client initilisation and credentials prioritisation
skyflow-vivek Oct 3, 2024
6049e1c
SK-1677 Used Constants instead of hard-coded strings
skyflow-vivek Oct 3, 2024
988ab14
SK-1678 Bearer Token uitlities
skyflow-vivek Oct 4, 2024
5ad62c7
SK-1665 Generate and integrate Data API code
skyflow-vivek Oct 7, 2024
54cf369
SK-1664 Public interfaces for vault APIs
skyflow-vivek Oct 8, 2024
c511774
SK-1701 Implemented public interfaces for insert vault API
skyflow-vivek Oct 8, 2024
96ab82c
SK-1703 Worked on feedback for Detokenize public interfaces
skyflow-vivek Oct 9, 2024
864159e
SK-1701 Worked on feedback for Insert public interfaces
skyflow-vivek Oct 9, 2024
4aabe84
SK-1702 Implement public interfaces for Get vault API
skyflow-vivek Oct 9, 2024
3246b37
SK-1678 Replaced use of JSONObject with Gson JsonObject
skyflow-vivek Oct 10, 2024
382877b
SK-1664 Implement vault API public interfaces
skyflow-vivek Oct 10, 2024
0ad69e4
SK-1707 Implement Delete API public interfaces
skyflow-vivek Oct 11, 2024
df0a13f
SK-1705 Implement Query API public interfaces
skyflow-vivek Oct 11, 2024
de7eddc
SK-1664 implement tokenize api public interface
skyflow-shravan Oct 15, 2024
d441a28
SK-1666 implement invoke connection public interface
skyflow-shravan Oct 15, 2024
5496e94
SK-1701 Add continueOnError in insert vault API public interface
skyflow-vivek Oct 16, 2024
19aa8ce
SK-1681 Add validations
skyflow-vivek Oct 16, 2024
9e04420
SK-1681 add validations for tokenize request
skyflow-shravan Oct 17, 2024
c4ad6c5
SK-1666 validations for invoke connection request
skyflow-shravan Oct 18, 2024
b56f6ef
SK-1664 move ColumnValue class to tokens package
skyflow-shravan Oct 18, 2024
b08a535
SK-1664 Implement vault API interfaces
skyflow-vivek Oct 18, 2024
c6c282c
SK-1682 add error codes, messages and logs
skyflow-shravan Oct 22, 2024
27f7443
SK-1681 Add validations
skyflow-vivek Oct 23, 2024
e8352ac
SK-1678 Add support for using Api Key
skyflow-vivek Oct 23, 2024
3ca482f
Merge branch 'SK-1664-implement-vault-api-public-interfaces' into SK-…
skyflow-vivek Oct 23, 2024
19a3ca8
Merge pull request #123 from skyflowapi/SK-1682-implement-error-codes…
skyflow-vivek Oct 24, 2024
78a202d
SK-1680 Implement logging
skyflow-vivek Oct 28, 2024
4e61b52
SK-1684 Add unit tests
skyflow-vivek Nov 1, 2024
184124b
SK-1680 Changed info logs to error logs in validation checks
skyflow-vivek Nov 1, 2024
8df4058
SK-1684 Add unit tests
skyflow-vivek Nov 5, 2024
b246c3e
Merge pull request #119 from skyflowapi/SK-1677-implement-client-init…
skyflow-vivek Nov 6, 2024
0b21134
Merge pull request #120 from skyflowapi/SK-1678-implement-bearer-toke…
skyflow-vivek Nov 6, 2024
b525d59
Merge pull request #121 from skyflowapi/SK-1664-implement-vault-api-p…
skyflow-vivek Nov 6, 2024
994aa4d
Merge pull request #124 from skyflowapi/SK-1681-add-validations
skyflow-vivek Nov 6, 2024
be856d0
SK-1684 Add unit tests for bearer token utilities
skyflow-vivek Nov 6, 2024
fc336f0
SK-1684 Add unit tests for signed data tokens
skyflow-vivek Nov 7, 2024
9f3bd92
SK-1684 Add unit tests for Java SDK v2
skyflow-vivek Nov 8, 2024
9447fcc
Merge branch 'SK-1684-add-unit-tests' into SK-1666-implement-invoke-c…
skyflow-vivek Nov 8, 2024
8fcfdf3
Merge pull request #122 from skyflowapi/SK-1666-implement-invoke-conn…
skyflow-vivek Nov 8, 2024
f148469
SK-1666 Fix conflicts and build issues after merge
skyflow-vivek Nov 8, 2024
f529a23
SK-1684 Add unit tests for invoke connection
skyflow-vivek Nov 15, 2024
8efdf12
SK-1623 Java SDK v2
skyflow-vivek Nov 15, 2024
6027972
SK-1623 Downgrade dotenv to work with java 8
skyflow-vivek Nov 15, 2024
f4affdf
SK-1767 Fix unit tests not running in CI pipeline
skyflow-vivek Nov 18, 2024
8fa94f7
SK-1767 Add new secret for Java SDK v2 tests
skyflow-vivek Nov 18, 2024
8e9193e
SK-1767 Fix issues in CI pipeline
skyflow-vivek Nov 18, 2024
f63b903
SK-1767 Fix compilation issues in CI pipeline
skyflow-vivek Nov 18, 2024
f092e78
SK-1682 Modified the structure of Skyflow error
skyflow-vivek Nov 19, 2024
9ec99b4
SK-1623 Fix minor issues in Java SDK v2
skyflow-vivek Nov 19, 2024
b2b06c1
SK-1685 Add samples for Java SDK v2
skyflow-vivek Nov 19, 2024
1b57ba7
Merge pull request #125 from skyflowapi/SK-1684-add-unit-tests
skyflow-vivek Nov 19, 2024
a1d64ce
SK-1685 Add samples for Bearer token utilities
skyflow-vivek Nov 19, 2024
d1c8d5e
Merge pull request #126 from skyflowapi/SK-1685-add-readme-and-samples
skyflow-vivek Nov 19, 2024
6a9e583
SK-1623 Fix minor issues in Javs SDK v2
skyflow-vivek Nov 20, 2024
b9ab36f
SK-1752 workflow for internal release
skyflow-shravan Nov 19, 2024
656272d
SK-1752 workflow for internal release
skyflow-shravan Nov 19, 2024
57657d2
SK-1753 add create env step
skyflow-shravan Nov 19, 2024
d09ff94
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
b76fa83
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
92eae6a
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
167b1b4
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
953903a
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
817bdc4
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
5e2d385
SK-1753 auto generate release version in pom.xml
skyflow-shravan Nov 20, 2024
5c48271
SK-1753 restore version in pom.xml
skyflow-shravan Nov 20, 2024
4dadb91
Merge pull request #134 from skyflowapi/SK-1753-internal-release-work…
skyflow-shravan Nov 20, 2024
222e54a
SK-1623 Fix typos in Samples
skyflow-vivek Nov 20, 2024
b4f2015
SK-1623 Worked on feedback for Update vault API interface
skyflow-vivek Nov 22, 2024
42bec3b
SK-1633 Upgraded dependency version
skyflow-vivek Nov 25, 2024
1eb16d7
SK-1623 Made constructors for Bearer token utilities builders private
skyflow-vivek Nov 25, 2024
92dde61
SK-1750 Rewrited README for SDK v2
skyflow-vivek Nov 25, 2024
273851f
Merge pull request #129 from skyflowapi/SK-1663-java-sdk-v2-scaffolding
skyflow-vivek Nov 26, 2024
5fb4dae
SK-1750 Change tokenStrict to tokenMode
skyflow-vivek Nov 26, 2024
3817de6
SK-1790 Changed tokenStrict to tokenMode
skyflow-vivek Nov 26, 2024
a3bb74d
SK-1786 common workflow for internal and public release
skyflow-shravan Nov 26, 2024
525bbb8
SK-1789 common workflow for public and internal release v2
skyflow-shravan Nov 26, 2024
6d23922
Merge pull request #139 from skyflowapi/SK-1786-common-workflow-for-v2
skyflow-shravan Nov 26, 2024
0b33663
SK-1786 test common workflow
skyflow-shravan Nov 26, 2024
162e61d
Merge pull request #140 from skyflowapi/SK-1786-common-workflow-for-v2
skyflow-shravan Nov 26, 2024
8958b9c
SK-1786 modify scripts path in workflow
skyflow-shravan Nov 26, 2024
84f7f3d
Merge pull request #141 from skyflowapi/SK-1786-common-workflow-for-v2
skyflow-shravan Nov 26, 2024
ea0d117
SK-1786 fix commit step
skyflow-shravan Nov 26, 2024
f6c7f07
Merge pull request #142 from skyflowapi/SK-1786-common-workflow-for-v2
skyflow-shravan Nov 26, 2024
7c1671c
[AUTOMATED] Private Release 1.15.0-dev-f6c7f07
skyflow-shravan Nov 26, 2024
e3847c2
SK-1786 include secrets from github
skyflow-shravan Nov 26, 2024
4ea53e6
SK-1786 modify pattern in commit message check
skyflow-shravan Nov 26, 2024
0a777ce
[AUTOMATED] Private Release 1.15.0-dev-4ea53e6
skyflow-shravan Nov 26, 2024
9533d03
Merge pull request #143 from skyflowapi/release/24.11.4
skyflow-shravan Nov 26, 2024
984221c
Merge pull request #138 from skyflowapi/SK-1790-change-tokenstrict-to…
skyflow-vivek Nov 27, 2024
f015151
SK-1802 Fix inconsistencies in SDK v2
skyflow-vivek Dec 5, 2024
ea8ae4c
SK-1802 Fix inconsistencies in SDK v2
skyflow-vivek Dec 5, 2024
8b1e558
SK-1802 Update examples and added unit tests
skyflow-vivek Dec 6, 2024
e094aca
SK-1802 Renamed github secret
skyflow-vivek Dec 9, 2024
25e3118
Merge pull request #144 from skyflowapi/SK-1802-fix-inconsistencies-i…
skyflow-vivek Dec 9, 2024
038bd74
SK-1737 Fix inconsistencies in Java SDK
skyflow-vivek Dec 10, 2024
8339ce7
Merge pull request #145 from skyflowapi/SK-1737-fix-inconcistencies-i…
skyflow-vivek Dec 10, 2024
7938fa6
[AUTOMATED] Private Release 1.15.0-dev-8339ce7
skyflow-vivek Dec 10, 2024
f146b51
SK-1737 Update workflow to fix build issue
skyflow-vivek Dec 11, 2024
09fb1e8
[AUTOMATED] Private Release 1.15.0-dev-f146b51
skyflow-vivek Dec 11, 2024
ad9b710
SK-1737 add stack trace to debug failures
skyflow-vivek Dec 11, 2024
deddbcf
[AUTOMATED] Private Release 1.15.0-dev-ad9b710
skyflow-vivek Dec 11, 2024
d2e7155
SK-1737 Fix spelling in error message
skyflow-vivek Dec 11, 2024
a3f5f23
[AUTOMATED] Private Release 1.15.0-dev-d2e7155
skyflow-vivek Dec 11, 2024
a0537e8
SK-1737 Added secrets for shared workflow
skyflow-vivek Dec 11, 2024
3231ca8
[AUTOMATED] Private Release 1.15.0-dev-a0537e8
skyflow-vivek Dec 11, 2024
e63cc93
Merge pull request #146 from skyflowapi/release/24.12.1
skyflow-vivek Dec 12, 2024
1363630
Merge pull request #136 from skyflowapi/SK-1750-rewrite-the-readme-fo…
skyflow-vivek Dec 12, 2024
b4dd8bd
SK-1815 workflow for beta release (#152)
skyflow-shravan Jan 15, 2025
32545bd
SK-1815 merge main to v2
skyflow-shravan Jan 15, 2025
35ba49f
SK-1829/Release/25.1.1 (#155)
skyflow-vivek Jan 16, 2025
c7ba710
SK-1820 refactor release pipeline (#157)
skyflow-shravan Jan 20, 2025
5ca3ba4
SK-1863: Added a migration guide section in the README for transition…
saileshwar-skyflow Feb 7, 2025
012d58c
SK-1875 Add separate redaction types for tokens in Detokenize
skyflow-vivek Feb 13, 2025
fe43c66
SK-1875 Add separate redaction types for tokens in Detokenize
skyflow-vivek Feb 13, 2025
6f64d7a
SK-1893 Update README for v2
skyflow-vivek Feb 14, 2025
1284f08
Merge pull request #159 from skyflowapi/SK-1875-support-separate-reda…
skyflow-vivek Feb 14, 2025
ce8278e
[AUTOMATED] Private Release 2.0.0-beta.1-dev-1284f08
skyflow-vivek Feb 14, 2025
0b69c49
SK-1890 Add requestIds in response for continueOnError failures
skyflow-vivek Feb 17, 2025
a183246
Merge pull request #160 from skyflowapi/SK-1893-update-readme-for-v2
skyflow-vivek Feb 20, 2025
b6b25c8
Merge pull request #161 from skyflowapi/SK-1890-include-request-ids-i…
skyflow-vivek Feb 20, 2025
ad0215a
[AUTOMATED] Private Release 2.0.0-beta.1-dev-b6b25c8
skyflow-vivek Feb 20, 2025
6b8c27d
SK-1900 Improve debugging errors in connections
skyflow-vivek Feb 25, 2025
ea71c1d
Merge pull request #164 from skyflowapi/SK-1900-improve-debugging-err…
skyflow-vivek Feb 28, 2025
0aaf4d2
[AUTOMATED] Private Release 2.0.0-beta.1-dev-ea71c1d
skyflow-vivek Feb 28, 2025
9a4f0e6
SK-1815 beta release for v2 (#153)
skyflow-shravan Jan 16, 2025
00ab092
SK-1815 update beta version in pom xml
skyflow-shravan Jan 16, 2025
a1b4e0e
SK-1833 update samples
skyflow-shravan Jan 17, 2025
8851d28
SK-1959 Fix Java Samples
skyflow-vivek Mar 17, 2025
b0658dc
SK-1959 Fix README after rebase
skyflow-vivek Mar 19, 2025
57f888b
SK-1959 Fix workflow after rebase
skyflow-vivek Mar 19, 2025
a69c8f8
Merge pull request #166 from skyflowapi/SK-1959-fix-java-samples
skyflow-vivek Mar 20, 2025
694e773
SK-1969 Fix error handling for certain scenarios
skyflow-vivek Mar 26, 2025
9f386ac
Merge branch 'v2' into release/25.2.1
skyflow-vivek Mar 27, 2025
7c12079
[AUTOMATED] Private Release 2.0.0-beta.1-dev-9f386ac
skyflow-vivek Mar 27, 2025
301f0a4
Merge pull request #169 from skyflowapi/release/25.2.1
skyflow-vivek Apr 2, 2025
ec349a9
Merge pull request #168 from skyflowapi/SK-1969
skyflow-vivek Apr 7, 2025
cf242b1
[AUTOMATED] Private Release 2.0.0-beta.1-dev-ec349a9
skyflow-vivek Apr 7, 2025
6004ba3
SK-2003: update readme
Apr 16, 2025
dcf1660
Merge pull request #170 from skyflowapi/release/25.4.1
skyflow-vivek Apr 16, 2025
f656d60
Merge pull request #171 from skyflowapi/SK-2003
skyflow-vivek Apr 16, 2025
b886165
SK-2141: Beta Release Fern Integration and Detect Support (#182)
saileshwar-skyflow Jun 30, 2025
f8d093f
[AUTOMATED] Public Release - 2.0.0-beta.2
saileshwar-skyflow Jun 30, 2025
02e622d
SK-1759: Detect support README and samples. (#183)
saileshwar-skyflow Jul 1, 2025
06892d9
SK-2207 Update release workflows and POM
skyflow-vivek Jul 29, 2025
a730a25
Merge pull request #188 from skyflowapi/beta-release/25.6.2
skyflow-vivek Aug 1, 2025
fbc045e
Merge pull request #189 from skyflowapi/skyflow-vivek/SK-2207-update-…
skyflow-vivek Aug 1, 2025
655c612
SK-1817: Public release Java SDK V2 (#222)
saileshwar-skyflow Sep 10, 2025
4ef720a
[AUTOMATED] Public Release - 2.0.0
saileshwar-skyflow Sep 10, 2025
a490c80
SK-2342: Update README and samples for V2 (#254)
saileshwar-skyflow Oct 13, 2025
72bf9a7
SK-2342: add endorlabsScan yml file
saileshwar-skyflow Oct 13, 2025
17ed385
SK-2342: update release workflows
saileshwar-skyflow Oct 13, 2025
96649ee
SK-2342: update samples
saileshwar-skyflow Oct 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Public beta release
on:
push:
tags: '*.*.*-beta.*'
jobs:
build-and-deploy:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
server-id: central
profile: maven-central
tag: 'beta'
secrets:
server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
4 changes: 2 additions & 2 deletions .github/workflows/endorlabsScan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Compile Package
run: mvn -B package -DTEST_VAULT_ID=${{ secrets.TEST_VAULT_ID }} -DTEST_VAULT_URL=${{ secrets.TEST_VAULT_URL }} -DTEST_SKYFLOW_ID=${{ secrets.TEST_SKYFLOW_ID }} -DTEST_TOKEN=${{ secrets.TEST_TOKEN }} -DTEST_CREDENTIALS=${{ secrets.TEST_CREDENTIALS_FILE_STRING }} -DTEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} -DTEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} -DSKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} -f pom.xml
run: mvn -B package -f pom.xml -Dmaven.javadoc.skip=true

- name: Endor Labs SCA Scan
uses: endorlabs/github-action@main
Expand All @@ -47,4 +47,4 @@ jobs:
pr: false
enable_github_action_token: true
scan_dependencies: true
additional_args: "--as-default-branch --call-graph-languages=java"
additional_args: "--as-default-branch --call-graph-languages=java"
11 changes: 7 additions & 4 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish package to the JFROG Artifactory
on:
push:
tags: '*.*.*'
tags-ignore:
- '*.*'
paths-ignore:
- "pom.xml"
- "*.md"
branches:
- release/*
Expand All @@ -13,11 +13,14 @@ jobs:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
is-internal: true
server-id: central
profile: jfrog
tag: 'internal'
secrets:
server-username: ${{ secrets.ARTIFACTORY_USERNAME }}
server-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
gpg-key: ${{ secrets.JFROG_GPG_KEY }}
gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }}
gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }}
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '1.8'
java-version: '11'

- name: create-json
id: create-json
Expand All @@ -23,7 +23,7 @@ jobs:
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Build & Run tests with Maven
run: mvn -B package -DTEST_VAULT_ID=${{ secrets.TEST_VAULT_ID }} -DTEST_VAULT_URL=${{ secrets.TEST_VAULT_URL }} -DTEST_SKYFLOW_ID=${{ secrets.TEST_SKYFLOW_ID }} -DTEST_TOKEN=${{ secrets.TEST_TOKEN }} -DTEST_CREDENTIALS=${{ secrets.TEST_CREDENTIALS_FILE_STRING }} -DTEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} -f pom.xml
run: mvn -B package -f pom.xml -Dmaven.javadoc.skip=true

- name: Codecov
uses: codecov/codecov-action@v2.1.0
Expand Down
22 changes: 15 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: PR CI Checks

on: [ pull_request ]
on: [pull_request]

jobs:
check-commit-message:
Expand All @@ -11,18 +11,18 @@ jobs:
uses: gsactions/commit-message-checker@v1
with:
pattern: '(\[?[A-Z]{1,5}-[1-9][0-9]*)|(\[AUTOMATED\])|(Merge)|(Release).+$'
flags: 'gm'
excludeDescription: 'true'
checkAllCommitMessages: 'true'
flags: "gm"
excludeDescription: "true"
checkAllCommitMessages: "true"
accessToken: ${{ secrets.PAT_ACTIONS }}
error: 'One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )'
error: "One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )"
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '1.8'
java-version: "11"

- name: create-json
id: create-json
Expand All @@ -31,8 +31,16 @@ jobs:
name: "credentials.json"
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: create env
id: create-env
run: |
touch .env
echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> .env

- name: Build & Run tests with Maven
run: mvn -B package -DTEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} -DTEST_DATA_CREDENTIALS_FILE=${{ secrets.TEST_DATA_CREDENTIALS_FILE }} -f pom.xml
run: mvn -B package -f pom.xml -Dmaven.javadoc.skip=true

- name: Codecov
uses: codecov/codecov-action@v2.1.0
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Publish package to the Maven Central Repository
name: Public release
on:
push:
tags: '*.*.*'
tags: '[0-9]+.[0-9]+.[0-9]+'
jobs:
build-and-deploy:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
is-internal: false
server-id: ossrh
server-id: central
profile: maven-central
tag: 'public'
secrets:
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_PASSWORD }}
server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
72 changes: 50 additions & 22 deletions .github/workflows/shared-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ on:
workflow_call:
inputs:
ref:
description: 'Git reference to use (e.g., main or branch name)'
description: "Git reference to use (e.g., main or branch name)"
required: true
type: string

is-internal:
description: 'Flag for internal release'
required: true
type: boolean

server-id:
description: 'Id of the repository'
description: "Id of the repository"
required: true
type: string

profile:
description: 'Profile to pick from pom.xml'
description: "Profile to pick from pom.xml"
required: true
type: string

tag:
description: 'Release Tag'
required: true
type: string
secrets:
Expand All @@ -34,25 +34,46 @@ on:
gpg-passphrase:
required: true

skyflow-credentials:
required: true

test-expired-token:
required: true

test-reusable-token:
required: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ inputs.ref }}
fetch-depth: 0

- name: Set up maven or jfrog repository
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: '1.8'
distribution: 'adopt'
java-version: "11"
distribution: "adopt"
server-id: ${{ inputs.server-id }}
server-username: SERVER_USERNAME
server-password: SERVER_PASSWORD
gpg-private-key: ${{ secrets.gpg-key }} # Value of the GPG private key to import
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Resolve Branch for the Tagged Commit
id: resolve-branch
if: ${{ inputs.tag == 'beta' || inputs.tag == 'public' }}
run: |
TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref_name }})
BRANCH_NAME=$(git branch -r --contains $TAG_COMMIT | grep -o 'origin/.*' | sed 's|origin/||' | head -n 1)
if [ -z "$BRANCH_NAME" ]; then
echo "Error: Could not resolve branch for the tag."
exit 1
fi
echo "Resolved Branch Name: $BRANCH_NAME"
echo "branch_name=$BRANCH_NAME" >> $GITHUB_ENV

- name: Get Previous tag
id: previoustag
Expand All @@ -63,7 +84,7 @@ jobs:
- name: Bump Version
run: |
chmod +x ./scripts/bump_version.sh
if ${{ inputs.is-internal }}; then
if ${{ inputs.tag == 'internal' }}; then
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "$(git rev-parse --short "$GITHUB_SHA")"
else
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"
Expand All @@ -73,22 +94,28 @@ jobs:
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com

if [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then
git checkout ${{ env.branch_name }}
fi

git add pom.xml
if ${{ inputs.is-internal }}; then
if [[ "${{ inputs.tag }}" == "internal" ]]; then
git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
git push origin ${{ github.ref_name }} -f
else
fi
if [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then
git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
git push origin
git push origin ${{ env.branch_name }}
fi

- name: Create env
if: ${{ inputs.is-internal }}
id: create-env
run: |
touch .env
echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
echo SKYFLOW_CREDENTIALS=${{ secrets.skyflow-credentials }} >> .env
echo TEST_EXPIRED_TOKEN=${{ secrets.test-expired-token }} >> .env
echo TEST_REUSABLE_TOKEN=${{ secrets.test-reusable-token }} >> .env

- name: Create credentials json
id: create-json
Expand All @@ -98,8 +125,9 @@ jobs:
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Publish package
run: mvn clean deploy -P ${{ inputs.profile }}
run: mvn --batch-mode deploy -P ${{ inputs.profile }}

env:
SERVER_USERNAME: ${{ secrets.server-username }}
SERVER_PASSWORD: ${{ secrets.server-password }}
GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}
GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}
Loading
Loading