From c7ba65d40412630ec1c9e1fff0e81087226a5721 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 1 Sep 2024 18:06:28 +0200 Subject: [PATCH] create release workflow --- .forgejo/workflows/release.yml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .forgejo/workflows/release.yml diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml new file mode 100644 index 0000000..2cd5fbd --- /dev/null +++ b/.forgejo/workflows/release.yml @@ -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