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

53 lines
1.5 KiB
YAML

name: Create Release
on:
workflow_dispatch:
inputs:
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
description:
description: 'Release description'
required: false
default: 'New release'
jobs:
create-release:
runs-on: macos
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0
- name: Create Tag
run: |
# Set tag name
TAG="v${{ github.event.inputs.version }}"
echo "Creating git tag: $TAG"
# Configure git
git config --global user.email "actions@gitea.com"
git config --global user.name "Gitea Actions"
# Create and push the tag
git tag -a "$TAG" -m "Release $TAG" || echo "Tag may already exist"
git push --tags || echo "Failed to push tag"
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
builds/**
api_key: '${{ secrets.GITEA_TOKEN }}'
title: 'Release v${{ github.event.inputs.version }}'
body: '${{ github.event.inputs.description }}'
prerelease: ${{ github.event.inputs.prerelease }}
tag_name: 'v${{ github.event.inputs.version }}'