Skip to content

Commit 75260f9

Browse files
Create a release on each tag (#453)
create a release on each tag, rename workflows
1 parent 0478a9a commit 75260f9

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- cron: '39 13 * * *' # run daily
1111

1212
jobs:
13-
build:
13+
ci_build:
1414
strategy:
1515
matrix:
1616
os: [ ubuntu-22.04, macos-12, rpi3b, macos-13, ubuntu-20.04 ]

.github/workflows/build_containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- cron: '29 13 * * *' # run daily
1111

1212
jobs:
13-
docker:
13+
build_docker_containers:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Runner Info

.github/workflows/version_bump.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88
jobs:
9-
build:
9+
version_bump:
1010
if: github.event.pull_request.merged == true
1111
runs-on: ubuntu-22.04
1212
permissions:
@@ -26,6 +26,16 @@ jobs:
2626
WITH_V: true
2727
DEFAULT_BUMP: patch
2828

29+
- name: Create release for ${{ steps.tag.outputs.new_tag }}
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
tag: ${{ steps.tag.outputs.new_tag }}
33+
run: |
34+
gh release create "$tag" \
35+
--repo="$GITHUB_REPOSITORY" \
36+
--title="Version ${tag#v}" \
37+
--generate-notes
38+
2939
- name: Run CI on ${{ steps.tag.outputs.new_tag }}
3040
env:
3141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)