Skip to content

Commit

Permalink
Create a release on each tag (#453)
Browse files Browse the repository at this point in the history
create a release on each tag, rename workflows
  • Loading branch information
charlie-foxtrot authored Jan 21, 2024
1 parent 0478a9a commit 75260f9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: '39 13 * * *' # run daily

jobs:
build:
ci_build:
strategy:
matrix:
os: [ ubuntu-22.04, macos-12, rpi3b, macos-13, ubuntu-20.04 ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- cron: '29 13 * * *' # run daily

jobs:
docker:
build_docker_containers:
runs-on: ubuntu-latest
steps:
- name: Runner Info
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
jobs:
build:
version_bump:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
Expand All @@ -26,6 +26,16 @@ jobs:
WITH_V: true
DEFAULT_BUMP: patch

- name: Create release for ${{ steps.tag.outputs.new_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.tag.outputs.new_tag }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="Version ${tag#v}" \
--generate-notes
- name: Run CI on ${{ steps.tag.outputs.new_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 75260f9

Please sign in to comment.