chore(release): v1.8.2 #8
Workflow file for this run
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: 'app-windows' | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-tauri: | |
| runs-on: 'windows-latest' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: 'npm' | |
| - name: Write mah build config | |
| shell: powershell | |
| run: | | |
| $data = @{ name = 'Mah'; mobile = true } | |
| $data | ConvertTo-Json | Set-Content -Path custom-build-config.json | |
| - name: install mah dependencies | |
| run: npm install | |
| - name: Install tauri dependencies | |
| run: cd resources/apps && npm install | |
| - name: Build windows app | |
| run: | | |
| cd resources/apps | |
| npm run windows | |
| - name: upload windows artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 'windows' | |
| path: resources/apps/tauri/target/x86_64-pc-windows-msvc/release/bundle/ | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: github.ref_type == 'tag' | |
| with: | |
| files: | | |
| resources\apps\tauri\target\x86_64-pc-windows-msvc\release\bundle\**\*.msi | |
| resources\apps\tauri\target\x86_64-pc-windows-msvc\release\bundle\**\*.exe |