diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index e13b8e00..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -custom: ['https://boosty.to/mihailris'] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a1d17c6..1da10518 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}