Skip to content

Add Windows ico and Mac icns icons, fix release workflow #2

Add Windows ico and Mac icns icons, fix release workflow

Add Windows ico and Mac icns icons, fix release workflow #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install dependencies
run: npm ci
- name: Build Tauri app
run: npx tauri build
- name: Upload Mac DMG
uses: actions/upload-artifact@v4
with:
name: mac-dmg
path: src-tauri/target/release/bundle/dmg/*.dmg
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install dependencies
run: npm ci
- name: Build Tauri app
run: npx tauri build
# The raw .exe is the standalone portable build
- name: Create portable zip
shell: pwsh
run: |
Compress-Archive -Path "src-tauri\target\release\markdownii.exe" -DestinationPath "MarkdownII-portable-windows-x64.zip"
- name: Upload Windows Portable (standalone exe)
uses: actions/upload-artifact@v4
with:
name: windows-portable
path: MarkdownII-portable-windows-x64.zip
- name: Upload Windows MSI Installer
uses: actions/upload-artifact@v4
with:
name: windows-msi
path: src-tauri/target/release/bundle/msi/*.msi
- name: Upload Windows NSIS Installer
uses: actions/upload-artifact@v4
with:
name: windows-nsis
path: src-tauri/target/release/bundle/nsis/*.exe
release:
needs: [build-mac, build-windows]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: List artifacts
run: find artifacts -type f | head -20
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
generate_release_notes: true
files: |
artifacts/mac-dmg/*
artifacts/windows-portable/*
artifacts/windows-msi/*
artifacts/windows-nsis/*