From 564fa82a08072e0ad40815f37e8e4a3c66ff2621 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Mon, 27 Jan 2025 07:21:34 +0400 Subject: [PATCH] automated release of tags --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cc225b..dd1cdef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: "ci" +name: "CI" on: - push diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..705f88c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Bump version + +on: + workflow_run: + workflows: ["CI"] + types: [completed] + +permissions: + contents: write + +jobs: + build: + if: > + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.head_branch == 'main' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.tag_version.outputs.new_tag }} + generate_release_notes: true