Add action for releases
Some checks failed
Unreal Engine Build / macos-build (push) Has been cancelled

This commit is contained in:
Goran Lazarevski 2025-03-28 12:23:40 +01:00
parent 26350c197e
commit 595c09c62d
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,53 @@
name: Create Release
on:
workflow_dispatch:
inputs:
build_id:
description: 'Build Run ID to use artifacts from'
required: true
default: ''
version:
description: 'Version for this release (e.g. 1.0.0)'
required: true
default: ''
prerelease:
description: 'Is this a pre-release?'
required: true
default: 'false'
type: boolean
jobs:
create-release:
runs-on: [ubuntu-latest]
steps:
- name: Manual Clone
run: |
echo "Current directory: $(pwd)"
echo "Repository URL: http://gitea:3000/luckyrobots/luckyworld.git"
# Clean workspace
rm -rf * .[!.]* ..?* 2>/dev/null || true
# Clone directly using the hostname that works (confirmed by ping)
git clone --depth=1 http://gitea:3000/luckyrobots/luckyworld.git .
# Verify clone succeeded
git status
- name: List Artifacts Directory
run: |
echo "Creating Builds directory"
mkdir -p Builds
ls -la
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "Builds/*"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: v${{ github.event.inputs.version }}
name: Release v${{ github.event.inputs.version }}
prerelease: ${{ github.event.inputs.prerelease }}
draft: false

View File

@ -81,3 +81,15 @@ jobs:
name: macos-build
path: Builds/
retention-days: 7
# - name: Create Release
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
# uses: ncipollo/release-action@v1
# with:
# artifacts: "Builds/*"
# token: ${{ secrets.GITHUB_TOKEN }}
# generateReleaseNotes: true
# tag: v${{ github.run_number }}
# name: Release v${{ github.run_number }}
# prerelease: ${{ github.ref != 'refs/heads/main' }}
# draft: false