From 3d6b0f9d2e3aa4cecf250dfc8ea7dea97fe13758 Mon Sep 17 00:00:00 2001 From: "Diego Ferreira L.G.Oliveira" Date: Sat, 6 Jun 2026 22:54:55 -0300 Subject: [PATCH] chore(ci): adicionar criacao de GitHub Release apos push ao Docker Hub --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5eaa41c..9f67499 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -302,3 +302,26 @@ jobs: run: | echo "Imagem publicada: ${{ secrets.DOCKER_USERNAME }}/bemvindo:${{ github.ref_name }}" echo "Tags: ${{ steps.meta.outputs.tags }}" + + # ─── Criar GitHub Release ───────────────────────────────────────────────── + github-release: + name: Criar GitHub Release + runs-on: ubuntu-latest + needs: docker-push + timeout-minutes: 10 + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Criar release no GitHub + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create "${{ github.ref_name }}" \ + --title "Release ${{ github.ref_name }}" \ + --generate-notes \ + --verify-tag