-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.67 KB
/
release.yml
File metadata and controls
59 lines (53 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Important for semantic-release to analyze commit history
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install frontend dependencies
run: bun install
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
cache-on-failure: true
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
semantic_version: 19
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
- name: Build and release Tauri app
if: steps.semantic.outputs.new_release_published == 'true'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v${{ steps.semantic.outputs.new_release_version }}
releaseName: 'Release v${{ steps.semantic.outputs.new_release_version }}'
releaseBody: ${{ steps.semantic.outputs.new_release_notes }}
releaseDraft: false
prerelease: false
includeUpdaterJson: true