docs: refresh demo GIF and caption; bump to 0.3.1 #4
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-windows: | |
| name: Build Windows binary | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Remove local linker override | |
| shell: pwsh | |
| run: Remove-Item -Force .cargo/config.toml | |
| - name: Build release binary | |
| run: cargo build --release --locked | |
| - name: Stage artifacts | |
| shell: pwsh | |
| run: | | |
| New-Item -ItemType Directory -Force -Path dist | Out-Null | |
| Copy-Item target/release/wasamix.exe dist/ | |
| Copy-Item README.md dist/ | |
| Copy-Item LICENSE-MIT dist/ | |
| Copy-Item LICENSE-APACHE dist/ | |
| Copy-Item CHANGELOG.md dist/ | |
| $tag = "${{ github.ref_name }}" | |
| Compress-Archive -Path dist/* -DestinationPath "wasamix-$tag-x86_64-pc-windows-msvc.zip" | |
| - name: Compute SHA-256 | |
| shell: pwsh | |
| run: | | |
| $tag = "${{ github.ref_name }}" | |
| $zip = "wasamix-$tag-x86_64-pc-windows-msvc.zip" | |
| (Get-FileHash $zip -Algorithm SHA256).Hash | Out-File -NoNewline "$zip.sha256" | |
| - name: Upload workflow artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wasamix-windows | |
| path: | | |
| wasamix-*.zip | |
| wasamix-*.zip.sha256 | |
| publish: | |
| name: Publish GitHub release | |
| needs: build-windows | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: wasamix-windows | |
| path: artifacts | |
| - name: Create release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: | | |
| artifacts/wasamix-*.zip | |
| artifacts/wasamix-*.zip.sha256 | |
| generate_release_notes: true | |
| draft: false | |
| prerelease: ${{ contains(github.ref_name, '-') }} |