Skip to content

Commit

Permalink
Testing out using tauri action directly
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv committed May 30, 2023
1 parent 1eb8cb9 commit 02027c3
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Tauri

on:
push:
tags:
- "v*"
release:
types: [published]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -55,50 +54,9 @@ jobs:
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

with:
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
releaseName: "v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseBody: "See the assets to download and install this version."
releaseDraft: false
prerelease: false

- name: Upload exe file
uses: actions/upload-artifact@v3
with:
name: Local AI
path: |
apps\desktop\src-tauri\target\release\*.exe
apps\desktop\src-tauri\target\release\Local AI
- name: Upload release assets windows
if: matrix.platform == 'windows-latest'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

with:
upload_url: ${{ steps.tauri_action.outputs.releaseUploadUrl }}
asset_path: apps\desktop\src-tauri\target\release\Local AI.exe
asset_name: Local AI.exe
asset_content_type: application/vnd.microsoft.portable-executable

- name: Upload release assets linux
if: matrix.platform == 'ubuntu-20.04'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.tauri_action.outputs.releaseUploadUrl }}
asset_path: apps/desktop/src-tauri/target/release/local-ai
asset_name: local_ai_ubuntu
asset_content_type: application/octet-stream

- name: Upload release assets mac
if: matrix.platform == 'macos-latest'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.tauri_action.outputs.releaseUploadUrl }}
asset_path: apps/desktop/src-tauri/target/release/Local AI
asset_name: local_ai_mac
asset_content_type: application/octet-stream
releaseId: ${{ github.event.release.id }}
tagName: ${{ github.event.release.tag_name }}

1 comment on commit 02027c3

@vercel
Copy link

@vercel vercel bot commented on 02027c3 May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.