Skip to content

Commit

Permalink
chore: add pakcage tauri step
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDinh committed Mar 21, 2024
1 parent a2cfd11 commit 2b87be5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,42 @@ jobs:
static-site-env-prefix: VITE
needs:
- ci

package-tauri:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
name: Package Tauri app

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install app dependencies
run: npm install

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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

0 comments on commit 2b87be5

Please sign in to comment.