From e9f861d05f5c7529c12c74b724d1351e7e702f77 Mon Sep 17 00:00:00 2001 From: Anthony TREUILLIER Date: Wed, 29 Oct 2025 18:14:08 +0100 Subject: [PATCH] ci: Add promote workflow Signed-off-by: Anthony TREUILLIER --- .github/workflows/promote.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/promote.yaml diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml new file mode 100644 index 0000000..b50f3de --- /dev/null +++ b/.github/workflows/promote.yaml @@ -0,0 +1,30 @@ +name: Promote +run-name: "Promote ${{ github.ref_name }}" + +on: + push: + tags: + - "v*" + +jobs: + create-release: + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # NOTE: We explicitly set the refs otherwise the tag + # annotations content is not fetched + # See: https://github.com/actions/checkout/issues/882 + ref: ${{ github.ref }} + - uses: softprops/action-gh-release@v2 + with: + name: Go-errors ${{ github.ref_name }} + tag_name: ${{ github.ref_name }} + generate_release_notes: true + # We consider pre-releases if the tag contains a hyphen + # e.g. v1.2.3-alpha.0 + prerelease: ${{ contains(github.ref_name, '-') }} + draft: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file