1
0
mirror of https://github.com/Dikootje/dlsync.git synced 2025-12-17 18:01:28 +00:00

Merge pull request #38 from Snowflake-Labs/release-with-jar-action

Updated github release action and updated readme
This commit is contained in:
Ytbarek Hailu
2025-09-03 22:21:55 -07:00
committed by GitHub
4 changed files with 31 additions and 6 deletions

View File

@@ -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 }}
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 }}

View File

@@ -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

View File

@@ -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.

View File

@@ -1 +1 @@
releaseVersion=2.4.1
releaseVersion=2.4.2