From 870c2432cee7cbb9ad5f393e2540876da819c517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Alves=20de=20Pontes?= <50830736+leticia-pontes@users.noreply.github.com> Date: Sun, 1 Dec 2024 10:50:02 -0300 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..6a28770 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release Pipeline + +on: + push: + branches: + - main # Quando fizer merge de 'develop' para 'main', o release será disparado + tags: + - 'v*' # Também se fizer um push com uma tag, como v1.0.0 + +jobs: + release: + name: Create Release + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.12' + + - name: Generate Release Notes + run: | + # Gerar notas de release, pode ser customizado + echo "Release Notes" > release_notes.txt + echo "Version: ${{ github.ref }}" >> release_notes.txt + + - name: Create Release in GitHub + uses: softprops/action-gh-release@v1 + with: + files: release_notes.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}