Skip to content

Commit e1b32c5

Browse files
committed
mac support
1 parent 8ecf398 commit e1b32c5

13 files changed

Lines changed: 745 additions & 58 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77

88
jobs:
99
release:
10-
runs-on: windows-latest
10+
strategy:
11+
matrix:
12+
os: [windows-latest, macos-latest]
13+
runs-on: ${{ matrix.os }}
1114
permissions:
1215
contents: write
1316

@@ -25,6 +28,7 @@ jobs:
2528
uses: dtolnay/rust-toolchain@stable
2629

2730
- name: Remove Git tar (Windows zstd fix)
31+
if: matrix.os == 'windows-latest'
2832
run: Remove-Item 'C:\Program Files\Git\usr\bin\tar.exe'
2933

3034
- name: Rust cache
@@ -35,6 +39,14 @@ jobs:
3539
- name: Install frontend dependencies
3640
run: pnpm install
3741

42+
- name: Get previous tag
43+
id: prev_tag
44+
shell: bash
45+
run: |
46+
git fetch --tags --force
47+
prev=$(git tag --sort=-version:refname | grep -E '^v[0-9]' | grep -v "^${{ github.ref_name }}$" | head -1)
48+
echo "tag=${prev}" >> "$GITHUB_OUTPUT"
49+
3850
- name: Build and release
3951
uses: tauri-apps/tauri-action@v0
4052
env:
@@ -45,8 +57,7 @@ jobs:
4557
tagName: v__VERSION__
4658
releaseName: 'Timesheeps v__VERSION__'
4759
releaseBody: |
48-
## What's new
49-
See commit history for changes.
50-
releaseDraft: true
60+
Full Changelog: [${{ steps.prev_tag.outputs.tag }}...v__VERSION__](https://github.com/${{ github.repository }}/compare/${{ steps.prev_tag.outputs.tag }}...v__VERSION__)
61+
releaseDraft: false
5162
prerelease: false
5263
updaterJsonPreferNsis: true

0 commit comments

Comments
 (0)