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' 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 ──────────────────────────────────────────────────── # RynthCore is checked out to $GITHUB_WORKSPACE (e.g. D:\a\RynthCore\RynthCore). # RynthSuite must be a *sibling* of RynthCore so that the csproj project # references (..\..\..\RynthCore\src\...) resolve correctly — they assume # both repos live under a common parent directory, matching the local # C:\Projects\RynthCore + C:\Projects\RynthSuite convention. - name: Checkout RynthCore uses: actions/checkout@v4 - name: Checkout RynthSuite (sibling of RynthCore) shell: pwsh run: | $parent = Split-Path "$env:GITHUB_WORKSPACE" -Parent $dest = "$parent\RynthSuite" Write-Host "Cloning RynthSuite to: $dest" # If RynthSuite is private, set a GH_PAT secret and use the token URL: # git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/tombohar/RynthSuite.git $dest git clone https://github.com/tombohar/RynthSuite.git $dest if ($LASTEXITCODE -ne 0) { throw "git clone RynthSuite failed" } # ── 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: | $issFile = "$env:GITHUB_WORKSPACE\installer\RynthCore.iss" $lineCount = (Get-Content $issFile).Count Write-Host "RynthCore.iss line count: $lineCount (commit: $(git rev-parse HEAD))" $parent = Split-Path "$env:GITHUB_WORKSPACE" -Parent & "$env:GITHUB_WORKSPACE\installer\Build-Installer.ps1" ` -RynthSuiteRoot "$parent\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`