2121 steps :
2222 - uses : actions/checkout@v5
2323
24+ # Extract version from package.json
25+ - name : Get Package Version
26+ id : pkg_version
27+ run : |
28+ VERSION=$(jq -r '.version' package.json)
29+ echo "VERSION=$VERSION" >> $GITHUB_ENV
30+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
31+
2432 # Install Bun
2533 - uses : oven-sh/setup-bun@v2
2634
@@ -64,52 +72,18 @@ jobs:
6472 if : matrix.platform == 'ubuntu-latest'
6573 run : bun run build:linux
6674
67- # Official Tauri build & artifact upload
75+ # Official Tauri build & release upload
6876 - uses : tauri-apps/tauri-action@v0
69- # Artifacts will be uploaded automatically by tauri-action
70-
71- release :
72- needs : build
73- runs-on : ubuntu-latest
74- steps :
75- - uses : actions/checkout@v5
76-
77- # Extract version from package.json
78- - name : Get Package Version
79- id : pkg_version
80- run : |
81- VERSION=$(jq -r '.version' package.json)
82- echo "VERSION=$VERSION" >> $GITHUB_ENV
83- echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
84-
85- # Download all build artifacts
86- - name : Download Windows artifact
87- uses : actions/download-artifact@v5
8877 with :
89- name : tauri-app-windows-latest
90- path : dist/windows
91-
92- - name : Download macOS artifact
93- uses : actions/download-artifact@v5
94- with :
95- name : tauri-app-macos-latest
96- path : dist/macos
97-
98- - name : Download Linux artifact
99- uses : actions/download-artifact@v5
100- with :
101- name : tauri-app-ubuntu-latest
102- path : dist/linux
103-
104- # Create a release (will auto-create a tag if it doesn't exist)
105- - name : Create Release
106- uses : softprops/action-gh-release@v2
107- with :
108- tag_name : v${{ steps.pkg_version.outputs.VERSION }}
109- name : Release v${{ steps.pkg_version.outputs.VERSION }}
110- files : |
111- dist/windows/**
112- dist/macos/**
113- dist/linux/**
78+ tagName : v${{ steps.pkg_version.outputs.VERSION }}
79+ releaseDraft : false
80+ prerelease : false
81+ projectPath : .
82+ includeDebug : false
83+ includeRelease : true
84+ includeUpdaterJson : true
85+ updaterJsonKeepUniversal : false
11486 env :
115- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88+
89+ # Artifacts will be uploaded automatically by tauri-action to the release for all platforms.
0 commit comments