Merge pull request #131 from AntonButov/refactoring-dependencies #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- trunk | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Extract version from build.gradle.kts | |
id: get_version | |
run: echo "VERSION=$(sed -nE 's/^version = \"([^\"]+)\"/\1/p' code-factory-processor/build.gradle.kts)" >> $GITHUB_ENV | |
- name: Create Git tag | |
run: | | |
git tag "v$VERSION" | |
git push origin "v$VERSION" | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: "v${{ env.VERSION }}" | |
name: "Release v${{ env.VERSION }}" | |
body: "Automated release for version v${{ env.VERSION }}" | |
draft: false | |
prerelease: false |