Skip to content

Commit

Permalink
Test Build
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTech6 committed Dec 6, 2024
1 parent 16d6497 commit 523b4b9
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
build-tauri:
strategy:
fail-fast: false
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: dotnet restore

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.11
with:
versionSpec: "5.x"

- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ env.GitVersion_SemVer }}

- name: GH Release
uses: softprops/action-gh-release@v1
if: ${{ !env.ACT && github.event_name == 'push' }}
with:
body: Automatic pre-release of ${{ env.GitVersion_SemVer }} for ${{ env.GitVersion_ShortSha }}
name: v${{ env.GitVersion_SemVer }}
files: |
./src-tauri/target/release/*.msi
CHANGELOG.md
fail_on_unmatched_files: true
prerelease: true
tag_name: v${{ env.GitVersion_SemVer }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
`0.0.1`
- Initial

0 comments on commit 523b4b9

Please sign in to comment.