From 3bbefa96478de55bf0b757fd46edb44af1ab669e Mon Sep 17 00:00:00 2001 From: ArthurErlich Date: Sun, 15 Mar 2026 21:51:53 +0100 Subject: [PATCH] feat: first draft of release workflow --- .gitea/workflows/release.yml | 39 ++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e5b8c97..a2ad24a 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -15,7 +15,25 @@ jobs: preset: ["Windows Desktop", "Linux/X11", "macOS"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 + + - name: Extract version from CHANGELOG + id: changelog + uses: release-drafter/release-drafter@v5 + with: + changelog-file: CHANGELOG.md + template: | + name: ${{ version }} + body: | + ${{ description }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Create Release also creates an Tag + # - name: Create git tag + # uses: alazhar/gitea-action-autotag@v1 + # with: + # tag: ${{ steps.changelog.outputs.version }} - name: Build id: build @@ -24,7 +42,20 @@ jobs: EXPORT_PRESET_NAME: ${{ matrix.preset }} - name: Upload builds - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: - name: ${{ matrix.preset }}-build - path: ${{ steps.build.outputs.build }} + name: godot-${{ matrix.preset }}-v${{ steps.changelog.outputs.version }} + path: godot-${{ matrix.preset }}-v${{ steps.changelog.outputs.version }}.tar.gz + + - name: Create Release + uses: akkuman/gitea-release-action@v1 + with: + server_url: https://git.arthurerlich.de + tag_name: ${{ steps.changelog.outputs.version }} + name: "Release ${{ steps.changelog.outputs.version }}" + body: ${{ steps.changelog.outputs.description }} + files: | + godot-Windows Desktop-v${{ steps.changelog.outputs.version }}.tar.gz + godot-Linux/X11-v${{ steps.changelog.outputs.version }}.tar.gz + godot-macOS-v${{ steps.changelog.outputs.version }}.tar.gz + draft: false