This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: Nightly Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: ['**'] # every commit on any branch -> nightly
|
||||||
- main
|
tags: ['**'] # any tag push -> versioned draft
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# The default token is read-only; release/tag operations need write.
|
# The default token is read-only; release/tag operations need write.
|
||||||
@@ -12,7 +12,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
export_game:
|
export_game:
|
||||||
runs_on: Debian-x86
|
runs-on: Debian-x86
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
name: Export Game
|
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
|
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: ./
|
relative_project_path: ./
|
||||||
archive_output: true
|
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
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
tag_name: nightly
|
||||||
# generateReleaseNotes: true
|
target_commitish: ${{ github.sha }}
|
||||||
# tag: ${{ github.ref_name }}
|
|
||||||
files: ${{ steps.export.outputs.archive_directory }}/*
|
|
||||||
# commit: ${{ gitea.sha }}
|
|
||||||
# allowUpdates: true
|
|
||||||
name: Latest Nightly Build
|
name: Latest Nightly Build
|
||||||
prerelease: true
|
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 }}/*
|
||||||
Reference in New Issue
Block a user