Files
Godot-Experements/.gitea/workflows/release.yml
ArthurErlich 8ae9b00b5a
Some checks failed
Build Release / build (Linux/X11) (pull_request) Failing after 1m39s
Build Release / build (Windows Desktop) (pull_request) Failing after 1m39s
Build Release / build (macOS) (pull_request) Failing after 1m38s
fix: update token usage in release workflow to use GITEA_TOKEN
2026-03-15 22:11:47 +01:00

62 lines
1.8 KiB
YAML

name: Build Release
on:
push:
branches: [release]
pull_request:
branches: [release]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
preset: ["Windows Desktop", "Linux/X11", "macOS"]
steps:
- uses: actions/checkout@v6
- name: Extract version from CHANGELOG
id: changelog
uses: release-drafter/release-drafter@v5
with:
changelog-file: CHANGELOG.md
template: |
name: ${{ version }}
body: |
${{ description }}
token: ${{ secrets.GITEA_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
uses: mlm-games/godot-build-action@v1.3.1
with:
EXPORT_PRESET_NAME: ${{ matrix.preset }}
- name: Upload builds
uses: actions/upload-artifact@v5
with:
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: ${{ SERVER_URL }}
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
token: ${{ secrets.GITEA_TOKEN }}