create release workflow

This commit is contained in:
Mylloon 2024-09-01 18:06:28 +02:00
parent 57ef9f3eb1
commit c7ba65d404
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -0,0 +1,39 @@
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