From aec61f57bbc7db4033b4a47fb0f66c07a76c92fd Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sat, 9 Nov 2024 17:19:08 +0100 Subject: [PATCH] add workflow to automatically create a release --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ce6cb4e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Create release + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + release: + name: Create release + runs-on: ubuntu-22.04 + steps: + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref_name }} + run: | + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --generate-notes