40 lines
1 KiB
YAML
40 lines
1 KiB
YAML
|
name: Upload release
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- "*"
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Setup Rust toolchain
|
||
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||
|
with:
|
||
|
target: x86_64-pc-windows-gnu
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
cargo install tauri-cli &&
|
||
|
apt-get update &&
|
||
|
apt-get install -y mingw-w64 zip
|
||
|
|
||
|
- name: Build the app for Windows
|
||
|
run: cargo tauri build --target x86_64-pc-windows-gnu
|
||
|
|
||
|
- name: Create zip bundle
|
||
|
run: |
|
||
|
cp src-tauri/target/x86_64-pc-windows-gnu/release/xtoyr.exe .
|
||
|
cp src-tauri/target/x86_64-pc-windows-gnu/release/WebView2Loader.dll .
|
||
|
zip -r xtoyr-win64-${{ github.ref_name }}.zip xtoyr.exe WebView2Loader.dll
|
||
|
|
||
|
- name: Create release
|
||
|
uses: akkuman/gitea-release-action@v1
|
||
|
with:
|
||
|
token: ${{ secrets.TOKEN }}
|
||
|
files: xtoyr-win64-${{ github.ref_name }}.zip
|
||
|
draft: true
|