Skip to content

Instantly share code, notes, and snippets.

@tnhung2011
Last active September 10, 2023 13:16
Show Gist options
  • Save tnhung2011/d0868f1d59fa6132e5808a20ab6a9f6f to your computer and use it in GitHub Desktop.
Save tnhung2011/d0868f1d59fa6132e5808a20ab6a9f6f to your computer and use it in GitHub Desktop.
Builds Tauri applications for Windows (x64, x86), then draft a release
name: Build executable
on: workflow_dispatch
env:
name: PLACE_REPO_NAME_HERE
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
arch: [i686-pc-windows-msvc, x86_64-pc-windows-msvc]
permissions:
contents: write
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install WebView2
uses: crazy-max/ghaction-chocolatey@v2
with:
args: install webview2-runtime
- name: Install x86 deps
if: ${{ matrix.arch == 'i686-pc-windows-msvc' }}
run: rustup target add i686-pc-windows-msvc
- name: Build executable
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --target ${{ matrix.arch }}
tagName: v__VERSION__
releaseName: '${{ env.name }} v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment