1
0
mirror of https://github.com/Dikootje/dlsync.git synced 2025-12-18 02:11:27 +00:00

Merge pull request #26 from Snowflake-Labs/release-action

Release action
This commit is contained in:
Ytbarek Hailu
2025-03-24 14:33:35 -07:00
committed by GitHub
2 changed files with 26 additions and 1 deletions

25
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set variables
run: |
export VERSION=$(grep "^releaseVersion=" gradle.properties | awk -F"=" '{ print $2 }')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- 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
run: |
git tag -a ${{ env.VERSION }}.test -m "version ${{ env.VERSION }}"
git push origin ${{ env.VERSION }}.test

View File

@@ -30,7 +30,7 @@ dependencies {
}
group = 'com.snowflake'
version = '1.0-SNAPSHOT'
version = releaseVersion
description = 'dlsync'
java.sourceCompatibility = JavaVersion.VERSION_11