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:
25
.github/workflows/release.yml
vendored
Normal file
25
.github/workflows/release.yml
vendored
Normal 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
|
||||
@@ -30,7 +30,7 @@ dependencies {
|
||||
}
|
||||
|
||||
group = 'com.snowflake'
|
||||
version = '1.0-SNAPSHOT'
|
||||
version = releaseVersion
|
||||
description = 'dlsync'
|
||||
java.sourceCompatibility = JavaVersion.VERSION_11
|
||||
|
||||
|
||||
Reference in New Issue
Block a user