-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.73 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (52 loc) · 1.73 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
60
61
62
63
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
strategy:
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'pnpm'
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Remove Git tar (Windows zstd fix)
if: matrix.os == 'windows-latest'
run: Remove-Item 'C:\Program Files\Git\usr\bin\tar.exe'
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Install frontend dependencies
run: pnpm install
- name: Get previous tag
id: prev_tag
shell: bash
run: |
git fetch --tags --force
prev=$(git tag --sort=-version:refname | grep -E '^v[0-9]' | grep -v "^${{ github.ref_name }}$" | head -1)
echo "tag=${prev}" >> "$GITHUB_OUTPUT"
- name: Build and release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ''
with:
tagName: v__VERSION__
releaseName: 'Timesheeps v__VERSION__'
releaseBody: |
Full Changelog: [${{ steps.prev_tag.outputs.tag }}...v__VERSION__](https://github.com/${{ github.repository }}/compare/${{ steps.prev_tag.outputs.tag }}...v__VERSION__)
releaseDraft: false
prerelease: false
updaterJsonPreferNsis: true