luckyworld/.gitea/workflows/create-release.yml
Goran Lazarevski 595c09c62d
Some checks failed
Unreal Engine Build / macos-build (push) Has been cancelled
Add action for releases
2025-03-28 12:42:16 +01:00

53 lines
1.5 KiB
YAML

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