Skip to content

Commit

Permalink
Add Tauri github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gers2017 committed Sep 10, 2022
1 parent 774fd89 commit 9798412
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release
"on":
push:
tags:
- v*
branches:
- release
workflow_dispatch: null
jobs:
release:
strategy:
fail-fast: false
matrix:
platform:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: "${{ matrix.platform }}"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Node.js setup
uses: actions/setup-node@v1
with:
node-version: 16
- name: Rust setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7.11.0
- name: Install dependencies and build
run: pnpm install
- name: Build and release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
tagName: v__VERSION__
releaseName: v__VERSION__
releaseBody: See the assets to download this version and install.
releaseDraft: true
prerelease: false

0 comments on commit 9798412

Please sign in to comment.