Skip to content

Commit f0d5530

Browse files
authored
Merge pull request #38 from Shayan-Ghani/37-automated-bump-and-release
fix #37 issue : adding release and bump workflow
2 parents 16df645 + e8d2b04 commit f0d5530

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: BVSTACK CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
## build to be implemented
15+
16+
release:
17+
if: github.event_name != 'pull_request'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Bump version and push tag
21+
id: bump
22+
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
default_bump: minor
26+
27+
- name: Build Changelog
28+
id: github_release
29+
uses: mikepenz/release-changelog-builder-action@f3fc77b47b74e78971fffecb2102ae6eac9a44d6
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
fromTag: ${{ steps.bump.outputs.previous_tag }}
33+
toTag: ${{ steps.bump.outputs.new_tag }}
34+
35+
- name: Create Release
36+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
37+
with:
38+
body: ${{ steps.github_release.outputs.changelog }}
39+
tag_name: ${{ steps.bump.outputs.new_tag }}

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
name: BVSTACK CI Pipeline
1+
name: BVSTACK Test Pipeline
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- actions
85
pull_request:
9-
branches:
10-
- main
116

127
env:
138
VAULT_ADDR: ${{ vars.VAULT_ADDR }}

0 commit comments

Comments
 (0)