-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6b2593
commit 336376f
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,22 +98,26 @@ jobs: | |
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
overwrite: true | ||
|
||
publish-tauri: | ||
build-tauri: | ||
needs: quick-tests | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: 'macos-latest' # for Arm based macs (M1 and above). | ||
- platform: 'macos-latest' | ||
args: '--target aarch64-apple-darwin' | ||
- platform: 'macos-latest' # for Intel based macs. | ||
label: 'Mac-M1' | ||
- platform: 'macos-latest' | ||
args: '--target x86_64-apple-darwin' | ||
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04. | ||
label: 'Mac-x86' | ||
- platform: 'ubuntu-22.04' | ||
args: '' | ||
label: 'Linux' | ||
- platform: 'windows-latest' | ||
args: '' | ||
label: 'Windows' | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
|
@@ -152,14 +156,17 @@ jobs: | |
cd ping-viewer-next-desktop | ||
bun install | ||
- uses: tauri-apps/[email protected] | ||
- name: Build the app | ||
id: tauri-build | ||
uses: tauri-apps/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
projectPath: './ping-viewer-next-desktop' | ||
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | ||
releaseName: 'App v__VERSION__' | ||
releaseBody: 'See the assets to download this version and install.' | ||
releaseDraft: true | ||
prerelease: false | ||
args: ${{ matrix.args }} | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: 'ping-viewer_${{steps.tauri-build.outputs.appVersion}}_${{ matrix.label }}' | ||
path: "${{ join(fromJSON(steps.tauri-build.outputs.artifactPaths), '\n') }}" |