refactor: update release workflow for improved tagging and asset management
Some checks failed
Build / Build (push) Failing after 17s
MSVC Build / build-windows (windows-latest) (push) Has been cancelled

This commit is contained in:
ShiftyX1 2025-12-08 19:41:32 +03:00
parent d3f8942fbf
commit ee7b1d4299
2 changed files with 27 additions and 10 deletions

1
.github/FUNDING.yml vendored
View File

@ -1 +0,0 @@
custom: ['https://boosty.to/mihailris']

View File

@ -1,5 +1,9 @@
name: Release name: Build and Release
run-name: ${{ github.actor }} preparing release
on: on:
push:
tags:
- 'v*'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
@ -7,7 +11,7 @@ on:
required: true required: true
default: "0.0.0" default: "0.0.0"
env: env:
RELEASE_VERSION: ${{ github.event.inputs.version || 'testrelease' }} RELEASE_VERSION: ${{ github.event.inputs.version || github.ref_name || 'testrelease' }}
BRANCH_NAME: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }} BRANCH_NAME: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || 'main' }}
jobs: jobs:
prepare: prepare:
@ -54,21 +58,35 @@ jobs:
ls -la ./release ls -la ./release
tree ./release tree ./release
- name: Create Tag - name: Create Tag
if: github.event_name == 'workflow_dispatch'
run: | run: |
git config --local user.email "action@github.com" git config --local user.email "action@gitea.com"
git config --local user.name "GitHub Action" git config --local user.name "Gitea Action"
TAG_NAME="v${RELEASE_VERSION}" TAG_NAME="v${RELEASE_VERSION}"
git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}" git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}"
git push origin "${TAG_NAME}" git push origin "${TAG_NAME}"
env: - name: Create Release with assets
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} uses: softprops/action-gh-release@v1
- name: Create Release Draft
uses: softprops/action-gh-release@v2
with: with:
tag_name: v${{ env.RELEASE_VERSION }} tag_name: v${{ env.RELEASE_VERSION }}
name: VoxelCore v${{ env.RELEASE_VERSION }}
body: |
## VoxelCore Release ${{ env.RELEASE_VERSION }}
### Downloads
- **Linux**: voxelcore-${{ env.RELEASE_VERSION }}_x86-64.AppImage
- **macOS**: voxelcore-${{ env.RELEASE_VERSION }}_macos.dmg
- **Windows**: voxelcore-${{ env.RELEASE_VERSION }}_win64.zip
### Installation
Download the appropriate file for your platform and run it.
---
**Full Changelog**: https://git.pyserve.org/PulseStudio/VoxelEngine/compare/v0.0.0...v${{ env.RELEASE_VERSION }}
draft: true draft: true
prerelease: false
files: | files: |
./release/* ./release/*
generate_release_notes: true token: ${{ secrets.GITHUB_TOKEN }}