Gingify v1.0.1 — production release #23
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: Build & Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| # ------------------------------------------------------------------------- | |
| # Primary build — Windows 10 / 11 (produces Gingify-Setup.exe) | |
| # ------------------------------------------------------------------------- | |
| build-win10: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-pc-windows-msvc | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri | |
| - name: Install Tauri CLI | |
| run: cargo install tauri-cli --version "^2" --locked | |
| - name: Run tests | |
| run: cargo test --manifest-path src-tauri/Cargo.toml --locked | |
| - name: Run clippy | |
| run: cargo clippy --manifest-path src-tauri/Cargo.toml --locked -- -D warnings | |
| - name: Build release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: cargo tauri build --target x86_64-pc-windows-msvc -- --locked | |
| - name: Copy installer to stable name | |
| if: startsWith(github.ref, 'refs/tags/') | |
| shell: pwsh | |
| run: | | |
| $exe = Get-ChildItem "target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe" | Select-Object -First 1 | |
| Copy-Item $exe.FullName "Gingify-Setup.exe" | |
| - name: Package Chrome Extension | |
| if: startsWith(github.ref, 'refs/tags/') | |
| shell: pwsh | |
| run: | | |
| Compress-Archive -Path gingify-extension\* -DestinationPath gingify-extension.zip | |
| - name: Upload artifacts to Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| Gingify-Setup.exe | |
| gingify-extension.zip | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |