Skip to content

Commit

Permalink
feat(ci): release and bump workflow in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Shayan-Ghani committed Aug 30, 2024
1 parent 875f51f commit e8d2b04
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: BVSTACK CI

on:
push:
branches:
- main
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
## build to be implemented

release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Bump version and push tag
id: bump
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: minor

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@f3fc77b47b74e78971fffecb2102ae6eac9a44d6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
fromTag: ${{ steps.bump.outputs.previous_tag }}
toTag: ${{ steps.bump.outputs.new_tag }}

- name: Create Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
body: ${{ steps.github_release.outputs.changelog }}
tag_name: ${{ steps.bump.outputs.new_tag }}

0 comments on commit e8d2b04

Please sign in to comment.