create release workflow
This commit is contained in:
parent
57ef9f3eb1
commit
c7ba65d404
1 changed files with 39 additions and 0 deletions
39
.forgejo/workflows/release.yml
Normal file
39
.forgejo/workflows/release.yml
Normal 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
|
Loading…
Reference in a new issue