Skip to content

Commit

Permalink
Add automated release script and release notes template (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming104 authored Aug 24, 2024
1 parent 506825d commit f83a4b1
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This workflow will build, publish, and release Helion.
# Release detail text is copied from RELEASENOTES.md.
# Release files will include source snapshots, and ZIP files with prebuilt executables for Linux and Windows (both single-file and runtime-dependent)

# Release checklist:
# 1. Update RELEASENOTES.md
# 2. Update version info in Directory.Build.props
# 3. Ensure you are synced to a commit that includes the updated state of (1) and (2); run `git pull` if needed
# 4. Create a new tag, e.g. `git tag 0.9.5.0`
# 5. Push the new tag, e.g. `git push origin 0.9.5.0`

name: Make .NET Release

on:
push:
tags:
- '*'

jobs:
buildRelease:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Dotnet Publish Linux
run: dotnet publish -c Release -r linux-x64 Client/Client.csproj
- name: Dotnet Publish Windows
run: dotnet publish -c Release -r win-x64 Client/Client.csproj
- name: Dotnet Publish Linux Self-Contained
run: dotnet publish -c Release -r linux-x64 -p:SelfContainedRelease=true Client/Client.csproj
- name: Dotnet Publish Windows Self-Contained
run: dotnet publish -c Release -r win-x64 -p:SelfContainedRelease=true Client/Client.csproj
- name: Install zip
uses: montudor/action-zip@v1
- name: Zip Linux
run: zip -r ../../Helion-${{ github.ref_name }}-linux-x64.zip *
working-directory: Publish/linux-x64
- name: Zip Linux Self-Contained
run: zip -r ../../Helion-${{ github.ref_name }}-linux-x64_SelfContained.zip *
working-directory: Publish/linux-x64_SelfContained
- name: Zip Windows
run: zip -r ../../Helion-${{ github.ref_name }}-win-x64.zip *
working-directory: Publish/win-x64
- name: Zip Windows Self-Contained
run: zip -r ../../Helion-${{ github.ref_name }}-win-x64_SelfContained.zip *
working-directory: Publish/win-x64_SelfContained
- name: Make Release
uses: ncipollo/release-action@v1
with:
artifacts: "*.zip"
bodyFile: "RELEASENOTES.md"
12 changes: 12 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 0.9.5.0 (Pre-release)

## Bug fixes:
- Fix various issues with intermission screen and end-game screen formatting, including use of widescreen assets
- Interpolate weapon raise/lower animation
- Prevent mouse vertical movement from causing the player to move when mouselook is enabled
- Fix issues related to building on case-sensitive file systems (Linux)

## Features:
- Initial id24 specification support
- SoundFont picker dialog

0 comments on commit f83a4b1

Please sign in to comment.