Skip to content

Commit

Permalink
chore: Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanMT committed Oct 21, 2023
1 parent cab87af commit 1a15a9a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish GitHub Release

on:
push:
tags:
- '*'

jobs:
push_to_registry:
name: Push GitHub Release
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Automated Version Bump
id: changelog
uses: Requarks/changelog-action@v1
with:
token: ${{secrets.GIT_TOKEN}}
tag: ${{github.ref_name}}
writeToFile: 'false'

- name: Get variables
id: get_variables
run: |
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
echo ::set-output name=IS_PRERELEASE::"${{contains(github.ref, 'dev')}}"
- name: Publish release github
uses: softprops/action-gh-release@v1
with:
token: ${{secrets.GIT_TOKEN}}
prerelease: ${{steps.get_variables.outputs.IS_PRERELEASE}}
tag_name: ${{steps.get_variables.outputs.VERSION}}
body: ${{steps.changelog.outputs.changes}}

0 comments on commit 1a15a9a

Please sign in to comment.