Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60edc0b5b4 | |||
| 836bcd8b8d | |||
| 8fd649356c | |||
| 4a02d054cc |
@@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: linux
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -37,18 +37,18 @@ jobs:
|
||||
with: { node-version: 20 }
|
||||
- name: Install Rust
|
||||
run: |
|
||||
if (-not (Get-Command rustc -ErrorAction SilentlyContinue)) {
|
||||
Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe
|
||||
.\rustup-init.exe -y --default-toolchain stable
|
||||
$env:Path += ";$env:USERPROFILE\.cargo\bin"
|
||||
}
|
||||
where rustc 2>nul || (
|
||||
curl -L -o rustup-init.exe https://win.rustup.rs/x86_64 && rustup-init.exe -y --default-toolchain stable
|
||||
)
|
||||
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
|
||||
rustc --version
|
||||
shell: pwsh
|
||||
shell: cmd
|
||||
- name: Build frontend
|
||||
run: cd web; npm ci; npm run build
|
||||
run: cd web && npm ci && npm run build
|
||||
shell: cmd
|
||||
- name: Build Tauri bundles
|
||||
run: cd web; $env:Path += ";$env:USERPROFILE\.cargo\bin"; npx tauri build
|
||||
shell: pwsh
|
||||
run: cd web && set PATH=%USERPROFILE%\.cargo\bin;%PATH% && npx tauri build
|
||||
shell: cmd
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -59,13 +59,15 @@ jobs:
|
||||
|
||||
release:
|
||||
needs: [build-linux, build-windows]
|
||||
runs-on: linux
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: actions/gitea-release-action@v3
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
files: |
|
||||
linux-bundles/*
|
||||
windows-bundles/*
|
||||
generate_release_notes: true
|
||||
|
||||
Reference in New Issue
Block a user