Merge pull request #179 from Eroge-Abyss/release-please--branches--ma… #68
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: 'Publish Release' | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - 'app-v*' | |
| jobs: | |
| publish-tauri: | |
| permissions: | |
| contents: write | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - 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: bun install | |
| - name: Typecheck frontend code | |
| run: bun run check | |
| - name: Lint frontend code | |
| run: bun run lint:fix | |
| - name: Get Release Notes | |
| id: get_notes | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release view "${{ github.ref_name }}" --json body -q .body > release_notes.md | |
| echo "notes<<EOF" >> $GITHUB_OUTPUT | |
| cat release_notes.md >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| with: | |
| tagName: ${{ github.ref_name }} | |
| releaseDraft: true | |
| prerelease: false | |
| releaseBody: ${{ steps.get_notes.outputs.notes }} | |
| args: '' |