Skip to content

chore: use manually converted blue-neon ICO #5

chore: use manually converted blue-neon ICO

chore: use manually converted blue-neon ICO #5

Workflow file for this run

name: Build & Release
on:
push:
tags:
- 'v*' # Push a tag like v1.0.0 to trigger a release
workflow_dispatch: # Also allow manual trigger from GitHub Actions tab
permissions:
contents: write # Needed to create GitHub Releases
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
# ── Publish as a normal folder (NOT single-file) so pdfium.dll stays intact ──
- name: Publish (self-contained)
run: >
dotnet publish WindowsNotesApp.csproj
-c Release
-r win-x64
--self-contained true
-o publish
# ── Build a proper Windows installer with Inno Setup ──
- name: Build Installer (Inno Setup)
run: |
& "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe" installer.iss
# ── Also create a portable zip ──
- name: Zip portable release
run: Compress-Archive -Path publish\* -DestinationPath WindowsNotes-Portable-win-x64.zip
# ── When triggered by a tag push → create a GitHub Release ──
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
installer_output/WindowsNotes-Setup-*.exe
WindowsNotes-Portable-win-x64.zip
generate_release_notes: true
# ── Always upload as artifacts (manual runs too) ──
- name: Upload installer artifact
uses: actions/upload-artifact@v4
with:
name: WindowsNotes-Installer
path: installer_output/WindowsNotes-Setup-*.exe
- name: Upload portable artifact
uses: actions/upload-artifact@v4
with:
name: WindowsNotes-Portable
path: publish/