chore: add release notes 1.2.1 #17
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 Tauri App | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| extract-notes: | |
| runs-on: macos-latest | |
| outputs: | |
| version: ${{ steps.notes.outputs.version }} | |
| payloadJson: ${{ steps.notes.outputs.payloadJson }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install --frozen-lockfile | |
| - name: Extract release notes | |
| id: notes | |
| env: | |
| RELEASE_VERSION: ${{ github.ref_name }} | |
| run: bun scripts/extract-release-note.mjs | |
| build-tauri: | |
| needs: extract-notes | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # ── macOS (universal binary) ── | |
| - runner: macos-latest | |
| args: --target universal-apple-darwin | |
| rust_targets: aarch64-apple-darwin,x86_64-apple-darwin | |
| # ── Windows ── | |
| - runner: windows-latest | |
| args: "" | |
| rust_targets: "" | |
| # ── Linux (x86_64) ── | |
| - runner: ubuntu-22.04 | |
| args: "" | |
| rust_targets: "" | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| # ── Linux system dependencies ── | |
| - name: Install Linux dependencies | |
| if: matrix.runner == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| wget \ | |
| file \ | |
| libxdo-dev \ | |
| libssl-dev \ | |
| libgtk-3-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| libappindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.rust_targets }} | |
| - run: bun install --frozen-lockfile | |
| - name: Build, bundle, and attach release artifacts | |
| uses: tauri-apps/tauri-action@v0.6.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tagName: ${{ github.ref_name }} | |
| releaseName: OpenSlides ${{ needs.extract-notes.outputs.version }} | |
| releaseBody: ${{ fromJSON(needs.extract-notes.outputs.payloadJson).fullNotes }} | |
| releaseDraft: false | |
| prerelease: false | |
| args: ${{ matrix.args }} | |
| tauriScript: bun run tauri | |
| update-marketing-site: | |
| needs: [extract-notes, build-tauri] | |
| runs-on: macos-latest | |
| steps: | |
| - name: Send release notes to the marketing site | |
| uses: actions/github-script@v7 | |
| env: | |
| PAYLOAD: ${{ needs.extract-notes.outputs.payloadJson }} | |
| with: | |
| github-token: ${{ secrets.WEBSITE_DISPATCH_TOKEN }} | |
| script: | | |
| await github.rest.repos.createDispatchEvent({ | |
| owner: 'codewiththiha', | |
| repo: 'OpenSlidesWebsite', | |
| event_type: 'update_release_notes', | |
| client_payload: JSON.parse(process.env.PAYLOAD), | |
| }) |