From 75260f9587a775879a56ff72e0b5f8db389ff78e Mon Sep 17 00:00:00 2001 From: charlie-foxtrot <13514783+charlie-foxtrot@users.noreply.github.com> Date: Sun, 21 Jan 2024 14:24:13 -0800 Subject: [PATCH] Create a release on each tag (#453) create a release on each tag, rename workflows --- .github/workflows/build.yml | 2 +- .github/workflows/build_containers.yml | 2 +- .github/workflows/version_bump.yml | 12 +++++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2321dec..540db8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 ] diff --git a/.github/workflows/build_containers.yml b/.github/workflows/build_containers.yml index ecde7f2..1872673 100644 --- a/.github/workflows/build_containers.yml +++ b/.github/workflows/build_containers.yml @@ -10,7 +10,7 @@ on: - cron: '29 13 * * *' # run daily jobs: - docker: + build_docker_containers: runs-on: ubuntu-latest steps: - name: Runner Info diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 4afb61a..5531faa 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -6,7 +6,7 @@ on: branches: - main jobs: - build: + version_bump: if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 permissions: @@ -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 }}