Skip to content

Commit

Permalink
Add workflow to build latest dev binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinez committed Aug 14, 2024
1 parent 91d6782 commit ee7f768
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/tauri-build-upload-binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "publish"

on:
push:
branches:
- dev

# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release.

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Node.js setup
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Rust setup
id: toolchain
uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: npm install

- uses: tauri-apps/tauri-action@v0
name: tauri
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false

- uses: actions/upload-artifact@v4
with:
name: ${{matrix.platform}}
path: |
${{ github.workspace }}/src-tauri/target/

0 comments on commit ee7f768

Please sign in to comment.