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:
|
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 }}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user