Skip to content

Add animated pause-screen overlays (ZSNES-style) #56

Add animated pause-screen overlays (ZSNES-style)

Add animated pause-screen overlays (ZSNES-style) #56

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
- name: Download OpenVGDB
run: |
$release = Invoke-RestMethod "https://api.github.com/repos/OpenVGDB/OpenVGDB/releases/latest"
$asset = $release.assets | Where-Object { $_.name -like "openvgdb*" } | Select-Object -First 1
Invoke-WebRequest -Uri $asset.browser_download_url -OutFile openvgdb.zip
Expand-Archive -Path openvgdb.zip -DestinationPath Emutastic/Assets/ -Force
Remove-Item openvgdb.zip
shell: pwsh
- name: Create Cores folder
run: New-Item -ItemType Directory -Force -Path Emutastic/Cores | Out-Null
shell: pwsh
- name: Publish
# Strip the leading 'v' from the tag so /p:Version receives "1.3.10" not "v1.3.10"
# — System.Version doesn't accept the v-prefix. Sets AssemblyVersion / FileVersion
# so the About tab in-app reads the actual release version.
run: |
$tag = "${{ github.ref_name }}"
$ver = $tag.TrimStart('v','V')
dotnet publish Emutastic/Emutastic.csproj /p:PublishProfile=Release-win-x64 /p:Version=$ver
shell: pwsh
- name: Zip release
run: |
$version = "${{ github.ref_name }}"
$zipName = "Emutastic-$version-win-x64.zip"
$publishDir = "Emutastic/bin/Publish/win-x64"
# Single-file publish bundles README.txt into the .exe — copy it back
# out alongside the .exe so players can actually read it.
Copy-Item "Emutastic/README.txt" $publishDir -Force
Compress-Archive -Path "$publishDir/*" -DestinationPath $zipName
echo "ZIP_NAME=$zipName" >> $env:GITHUB_ENV
shell: pwsh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
with:
name: Emutastic ${{ github.ref_name }}
draft: true
prerelease: false
generate_release_notes: true
files: ${{ env.ZIP_NAME }}