From 685da5bd5c4cd4f06a803f6d4eb6981e98449c73 Mon Sep 17 00:00:00 2001 From: Ytbarek Hailu Date: Wed, 3 Sep 2025 22:18:43 -0700 Subject: [PATCH] Updated github release action and updated readme --- .github/workflows/release.yml | 27 ++++++++++++++++++++++++--- CHANGELOG.md | 4 ++++ README.md | 4 ++-- gradle.properties | 2 +- 4 files changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7eb6626..aea652e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,20 +6,41 @@ on: branches: - main jobs: - tag: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' - name: Set variables run: | export VERSION=$(grep "^releaseVersion=" gradle.properties | awk -F"=" '{ print $2 }') echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Build with Gradle + run: ./gradlew clean build - name: setup git config run: | # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default git config user.name "GitHub Actions Bot" git config user.email "<>" - - name: tagging + - name: Create tag run: | git tag -a v${{ env.VERSION }} -m "version ${{ env.VERSION }}" - git push origin v${{ env.VERSION }} \ No newline at end of file + git push origin v${{ env.VERSION }} + - name: Create GitHub Release + uses: softprops/action-gh-release@v1 + with: + tag_name: v${{ env.VERSION }} + name: Release v${{ env.VERSION }} + generate_release_notes: true + files: | + build/libs/dlsync-${{ env.VERSION }}.jar + draft: true + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 4181747..868594b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # DLSync Changelog This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.4.2] - 2025-09-03 +### Updated +- Github action for release +- Updated readme for private key authentication ## [2.4.1] - 2025-08-22 ### Fixed - Fixed issue for encrypted private key files diff --git a/README.md b/README.md index d3dd17e..adbc88c 100644 --- a/README.md +++ b/README.md @@ -291,8 +291,8 @@ connection: db: # snowflake database schema: # snowflake schema authenticator: # snowflake authenticator(optional) - private_key_file: # snowflake p8 file - private_key_file_pwd: # password for private key file + private_key_file: # snowflake p8 file (optional) + private_key_pwd: # password for private key file (optional) ``` The `configTables` is used by create script module to add the data of the tables to the script file. The `scriptExclusion` is used to exclude the script files from being processed by this tool. diff --git a/gradle.properties b/gradle.properties index cfd505b..2e76854 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -releaseVersion=2.4.1 \ No newline at end of file +releaseVersion=2.4.2 \ No newline at end of file