Skip to content

Commit

Permalink
adding inital release file that git triggered after new tag been pushed.
Browse files Browse the repository at this point in the history
  • Loading branch information
elkezza committed Aug 6, 2024
1 parent 78ccb76 commit 4a7d857
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Create Release on Tag

on:
push:
tags:
- 'v*.*.*'

jobs:
create_release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up GitHub CLI
uses: cli/gh-action@v2
with:
version: latest

- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME=$(git describe --tags)
RELEASE_TITLE="Release ${TAG_NAME}"
RELEASE_NOTES="See the [CHANGELOG](https://github.com/exoscale/exoscale4j/blob/main/CHANGELOG.md) for details."
gh release create "${TAG_NAME}" --title "${RELEASE_TITLE}" --notes "${RELEASE_NOTES}"

0 comments on commit 4a7d857

Please sign in to comment.