Added tag-based release labeling
Release / Export Game (push) Failing after 51s

This commit is contained in:
qwsdcvghyu89
2026-06-06 21:11:23 +10:00
parent 4af85ded56
commit 08d75b55f0
+22 -11
View File
@@ -1,9 +1,9 @@
name: Nightly Release
name: Release
on:
push:
branches:
- main
branches: ['**'] # every commit on any branch -> nightly
tags: ['**'] # any tag push -> versioned draft
workflow_dispatch:
# The default token is read-only; release/tag operations need write.
@@ -12,7 +12,7 @@ permissions:
jobs:
export_game:
runs_on: Debian-x86
runs-on: Debian-x86
permissions:
contents: write
name: Export Game
@@ -33,14 +33,25 @@ jobs:
godot_export_templates_download_url: https://godot-releases.nbg1.your-objectstorage.com/4.6.3-stable/Godot_v4.6.3-stable_mono_export_templates.tpz
relative_project_path: ./
archive_output: true
- name: create release
cache: true
# --- not tagged: rolling nightly, updates the existing release ---
- name: create nightly release
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: akkuman/gitea-release-action@v1
with:
# token: ${{ secrets.GITHUB_TOKEN }}
# generateReleaseNotes: true
# tag: ${{ github.ref_name }}
files: ${{ steps.export.outputs.archive_directory }}/*
# commit: ${{ gitea.sha }}
# allowUpdates: true
tag_name: nightly
target_commitish: ${{ github.sha }}
name: Latest Nightly Build
prerelease: true
files: ${{ steps.export.outputs.archive_directory }}/*
# --- tagged with a version: versioned draft release ---
- name: create versioned release draft
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: akkuman/gitea-release-action@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: true
files: ${{ steps.export.outputs.archive_directory }}/*