refactor: update release workflow for improved tagging and asset management
This commit is contained in:
parent
d3f8942fbf
commit
ee7b1d4299
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
||||
custom: ['https://boosty.to/mihailris']
|
||||
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
@ -1,5 +1,9 @@
|
||||
name: Release
|
||||
name: Build and Release
|
||||
run-name: ${{ github.actor }} preparing release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
@ -7,7 +11,7 @@ on:
|
||||
required: true
|
||||
default: "0.0.0"
|
||||
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' }}
|
||||
jobs:
|
||||
prepare:
|
||||
@ -54,21 +58,35 @@ jobs:
|
||||
ls -la ./release
|
||||
tree ./release
|
||||
- name: Create Tag
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git config --local user.email "action@gitea.com"
|
||||
git config --local user.name "Gitea Action"
|
||||
|
||||
TAG_NAME="v${RELEASE_VERSION}"
|
||||
git tag -a "${TAG_NAME}" -m "Automated release tag ${TAG_NAME}"
|
||||
git push origin "${TAG_NAME}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Create Release Draft
|
||||
uses: softprops/action-gh-release@v2
|
||||
- name: Create Release with assets
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
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
|
||||
prerelease: false
|
||||
files: |
|
||||
./release/*
|
||||
generate_release_notes: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user