From 44b5bccce46a0d6233a375b7a981f18976433fee Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Mon, 5 Feb 2024 16:36:38 +0100 Subject: [PATCH] Auto release --- .github/workflows/create-release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..7a53c9d --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,23 @@ +name: Release +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Get version number + id: version + run: echo "version=$(echo ${{ github.ref_name }} | cut -c2- -)" >> $GITHUB_OUTPUT + - name: Release + uses: ncipollo/release-action@v1 + with: + generateReleaseNotes: true + makeLatest: "legacy" + name: "Version ${{ steps.version.outputs.version }}"