release-windows.yml #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Windows | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-windows: | |
| name: Build Windows | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| 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 -> target' | |
| - name: Install frontend dependencies | |
| run: npm install | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Generate Tauri icons | |
| run: npx tauri icon public/icon.png | |
| continue-on-error: true | |
| - name: Install Tauri Rust dependencies | |
| working-directory: src-tauri | |
| run: cargo fetch | |
| - name: Build Tauri app (Windows) | |
| run: npx tauri build 2>&1 | |
| timeout-minutes: 30 | |
| - name: List build output | |
| run: | | |
| Get-ChildItem -Path "src-tauri\target\release\bundle" -Recurse -File | Select-Object FullName | |
| continue-on-error: true | |
| - name: Upload Windows artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: multimdreader-windows | |
| path: | | |
| src-tauri/target/release/multimdreader.exe | |
| src-tauri/target/release/bundle/nsis/*.exe | |
| retention-days: 30 | |
| - name: Create/Update GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| name: 'MultiMDReader ${{ github.ref_name }}' | |
| body: | | |
| ## MultiMDReader ${{ github.ref_name }} | |
| 🔤 A cross-platform Markdown file reader. No installation required. | |
| ### 📥 Downloads | |
| | Platform | File | Instructions | | |
| |----------|------|-------------| | |
| | **Windows** | `MultiMDReader_*_x64-setup.exe` | Double-click to install & run | | |
| | **Windows (Portable)** | `multimdreader.exe` | Just run the .exe — no install needed | | |
| | **macOS (Intel)** | `MultiMDReader_*_x64.dmg` | Open .dmg → drag to Applications | | |
| | **macOS (Apple Silicon)** | `MultiMDReader_*_aarch64.dmg` | Open .dmg → drag to Applications | | |
| | **Linux (Debian/Ubuntu)** | `MultiMDReader_*_amd64.deb` | `sudo dpkg -i *.deb` | | |
| | **Linux (All distros)** | `MultiMDReader_*_amd64.AppImage` | `chmod +x && ./MultiMDReader_*.AppImage` | | |
| | **Linux (Arch)** | `multimdreader-*.pkg.tar.zst` | `sudo pacman -U *.pkg.tar.zst` | | |
| ### 🌐 Supported Languages | |
| 🇮🇹 Italiano · 🇬🇧 English (UK) · 🇺🇸 English (US) · 🇪🇸 Español · 🇩🇪 Deutsch · 🇫🇷 Français | |
| --- | |
| Author: [PiBOH](https://piboh.github.io/) · Repository: [GitHub](https://github.com/PiBOH/multimdreader) | |
| draft: false | |
| prerelease: true | |
| files: | | |
| src-tauri/target/release/multimdreader.exe | |
| src-tauri/target/release/bundle/nsis/*.exe | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |