Add GitHub Actions release workflow

Adds .github/workflows/release.yml that builds the full installer and
publishes a GitHub Release. Triggered manually (Actions tab) or on v* tags.
Updates Build-Installer.ps1 with -RynthSuiteRoot and -Version parameters
so the CI runner can pass paths and version without hardcoded conventions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
tombohar 2026-04-18 13:06:01 -04:00
commit 8d9a3a83af
3 changed files with 128 additions and 6 deletions

105
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,105 @@
name: Build & Release
# Trigger manually (Actions tab → Run workflow) or automatically on version tags.
# For a manual release: go to Actions → Build & Release → Run workflow, enter version.
# For an automated release: push a tag: git tag v0.3 && git push origin v0.3
on:
workflow_dispatch:
inputs:
version:
description: 'Version number (e.g. 0.3) — creates tag v<version>'
required: true
default: '0.3'
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-latest
permissions:
contents: write # needed to create releases
steps:
# ── Checkout both repos ────────────────────────────────────────────────────
- name: Checkout RynthCore
uses: actions/checkout@v4
- name: Checkout RynthSuite
uses: actions/checkout@v4
with:
repository: tombohar/RynthSuite
path: RynthSuite
# If RynthSuite is a private repo, create a Personal Access Token with
# repo scope and add it as a repository secret named GH_PAT.
# Then uncomment the next line:
# token: ${{ secrets.GH_PAT }}
# ── Toolchain ─────────────────────────────────────────────────────────────
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Install Inno Setup 6
run: choco install innosetup --yes --no-progress
shell: pwsh
# ── Determine version ──────────────────────────────────────────────────────
- name: Resolve version
id: ver
shell: pwsh
run: |
if ("${{ github.event_name }}" -eq "workflow_dispatch") {
$v = "${{ github.event.inputs.version }}"
} else {
$v = "${{ github.ref_name }}".TrimStart('v')
}
echo "version=$v" >> $env:GITHUB_OUTPUT
echo "tag=v$v" >> $env:GITHUB_OUTPUT
Write-Host "Building version: $v"
# ── Build installer ────────────────────────────────────────────────────────
- name: Build installer
shell: pwsh
run: |
& "$env:GITHUB_WORKSPACE\installer\Build-Installer.ps1" `
-RynthSuiteRoot "$env:GITHUB_WORKSPACE\RynthSuite" `
-Version "${{ steps.ver.outputs.version }}"
# ── Tag (manual dispatch only — tag-push already has a tag) ───────────────
- name: Create tag (manual dispatch)
if: github.event_name == 'workflow_dispatch'
shell: pwsh
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag "${{ steps.ver.outputs.tag }}" -m "Release ${{ steps.ver.outputs.tag }}"
git push origin "${{ steps.ver.outputs.tag }}"
# ── GitHub Release ─────────────────────────────────────────────────────────
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.ver.outputs.tag }}
name: RynthCore ${{ steps.ver.outputs.tag }}
files: installer/Output/RynthCore-Setup.exe
body: |
## Installation
1. Download **RynthCore-Setup.exe** below and run it
2. Start Asheron's Call and log in to your character
3. Open **RynthCore** from the Start Menu or Desktop shortcut
4. Click **Inject Running AC** in the launcher
5. The RynthAi panel will appear inside the AC window
---
**First-time setup** — in the RynthCore launcher:
- Set your `acclient.exe` path under **Runtime Paths** if prompted
- The plugin auto-loads from `C:\Games\RynthCore\Runtime\Plugins\`
Loot, nav, and meta profiles go in `C:\Games\RynthSuite\RynthAi\`
Log file: `%USERPROFILE%\Desktop\RynthCore.log`

View file

@ -23,6 +23,12 @@
param(
[string]$Configuration = "Release",
[string]$IsccPath = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe",
# Explicit path to the RynthSuite repo root. When omitted, defaults to the
# sibling directory of RynthCore (i.e. ..\RynthSuite relative to this repo).
[string]$RynthSuiteRoot = "",
# Version string injected into the installer (e.g. "0.3"). When omitted,
# the version defined in RynthCore.iss is used as-is.
[string]$Version = "",
[switch]$SkipBuild
)
@ -30,16 +36,21 @@ $ErrorActionPreference = "Stop"
Set-StrictMode -Off
$ScriptDir = $PSScriptRoot
$RepoRoot = Split-Path $ScriptDir -Parent # C:\Projects\RynthCore
$ProjectsRoot = Split-Path $RepoRoot -Parent # C:\Projects
$RepoRoot = Split-Path $ScriptDir -Parent # e.g. C:\Projects\RynthCore
$ProjectsRoot = Split-Path $RepoRoot -Parent # e.g. C:\Projects
# RynthSuite root: explicit param takes priority, otherwise sibling convention.
if (-not $RynthSuiteRoot) {
$RynthSuiteRoot = "$ProjectsRoot\RynthSuite"
}
$LauncherProject = "$RepoRoot\src\RynthCore.App.Avalonia\RynthCore.App.Avalonia.csproj"
$EngineProject = "$RepoRoot\src\RynthCore.Engine\RynthCore.Engine.csproj"
$PluginProject = "$ProjectsRoot\RynthSuite\Plugins\RynthCore.Plugin.RynthAi\RynthCore.Plugin.RynthAi.csproj"
$PluginProject = "$RynthSuiteRoot\Plugins\RynthCore.Plugin.RynthAi\RynthCore.Plugin.RynthAi.csproj"
$LauncherPublish = "$RepoRoot\src\RynthCore.App.Avalonia\bin\$Configuration\net9.0-windows7.0\win-x86\publish"
$EnginePublish = "$RepoRoot\src\RynthCore.Engine\bin\$Configuration\net9.0-windows\win-x86\publish"
$PluginPublish = "$ProjectsRoot\RynthSuite\Plugins\RynthCore.Plugin.RynthAi\bin\$Configuration\net9.0-windows\win-x86\publish"
$PluginPublish = "$RynthSuiteRoot\Plugins\RynthCore.Plugin.RynthAi\bin\$Configuration\net9.0-windows\win-x86\publish"
$StagingDir = "$ScriptDir\staging\app"
@ -131,7 +142,13 @@ if (-not (Test-Path $IsccPath)) {
Write-Host ""
Write-Host "Building installer..." -ForegroundColor Cyan
New-Item -ItemType Directory -Path "$ScriptDir\Output" -Force | Out-Null
& $IsccPath "$ScriptDir\RynthCore.iss"
$isccArgs = @("$ScriptDir\RynthCore.iss")
if ($Version) {
$isccArgs += "/DAppVersion=$Version"
Write-Host " Version override: $Version"
}
& $IsccPath @isccArgs
if ($LASTEXITCODE -ne 0) { throw "ISCC build failed (exit $LASTEXITCODE)" }
Write-Host ""

View file

@ -16,7 +16,7 @@ AppId={{A8B4C2D1-E3F5-4678-9ABC-DEF012345678}
AppName={#AppName}
AppVersion={#AppVersion}
AppPublisher={#AppPublisher}
; AppPublisherURL=https://github.com/your-repo-here
AppPublisherURL=https://github.com/tombohar/RynthCore
DefaultDirName=C:\Games\RynthCore
DisableDirPage=no
DefaultGroupName={#AppName}