From 9b72353bac144669c9421ecce9441de9b0d04d07 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Wed, 17 Jul 2024 16:47:36 +0200 Subject: [PATCH] chore: fix ci --- .github/workflows/release-app.yml | 31 ++++++++++++------------------- Cargo.toml | 4 ++-- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml index 11299571f..d461d3cda 100644 --- a/.github/workflows/release-app.yml +++ b/.github/workflows/release-app.yml @@ -1,22 +1,12 @@ # # Run for macOS -# act -W .github/workflows/release-app.yml -j "Release app" --container-architecture linux/amd64 -P ubuntu-latest=catthehacker/ubuntu:act-latest --eventpath <(echo '{"ref":"refs/tags/v1.0.0","ref_name":"v1.0.0"}') --matrix platform:macos-latest +# act -W .github/workflows/release-app.yml --container-architecture linux/amd64 -j release -P macos-latest=-self-hosted -# # Run for Ubuntu -# act -W .github/workflows/release-app.yml -j "Release app" --container-architecture linux/amd64 -P ubuntu-latest=catthehacker/ubuntu:act-latest --eventpath <(echo '{"ref":"refs/tags/v1.0.0","ref_name":"v1.0.0"}') --matrix platform:ubuntu-22.04 - -# # Run for Windows -# act -W .github/workflows/release-app.yml -j "Release app" --container-architecture linux/amd64 -P ubuntu-latest=catthehacker/ubuntu:act-latest --eventpath <(echo '{"ref":"refs/tags/v1.0.0","ref_name":"v1.0.0"}') --matrix platform:windows-latest - -# # Run for all platforms -# act -W .github/workflows/release-app.yml -j "Release app" --container-architecture linux/amd64 -P ubuntu-latest=catthehacker/ubuntu:act-latest --eventpath <(echo '{"ref":"refs/tags/v1.0.0","ref_name":"v1.0.0"}') - - -name: 'Release app' +name: "Release app" on: push: tags: - - 'v*' + - "v*" jobs: release: @@ -40,21 +30,24 @@ jobs: - name: setup node uses: actions/setup-node@v4 with: - node-version: 'lts/*' - cache: 'npm' + node-version: "lts/*" - name: setup rust uses: dtolnay/rust-toolchain@stable - name: install frontend dependencies - run: npm ci + working-directory: examples/apps/screen-pipe-app/ + run: pnpm i - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + projectPath: examples/apps/screen-pipe-app/ tagName: ${{ github.ref_name }} - releaseName: 'App v__VERSION__' - releaseBody: 'See the assets to download and install this version.' + releaseName: "App v__VERSION__" + releaseBody: "See the assets to download and install this version." releaseDraft: true - prerelease: false \ No newline at end of file + prerelease: false + distPath: "../examples/apps/screen-pipe-app/dist" + appVersion: ${{ github.ref_name }} diff --git a/Cargo.toml b/Cargo.toml index 685c18387..e4c18fc9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [workspace] -members = ["screenpipe-server", "screenpipe-vision", "screenpipe-audio"] +members = ["screenpipe-server", "screenpipe-vision", "screenpipe-audio", "examples/apps/screen-pipe-app/src-tauri"] exclude = [] resolver = "2" [workspace.package] version = "0.1.0" authors = ["louis030195 "] -description = "Trigger actions based on your screen" +description = "" repository = "https://github.com/louis030195/screen-pipe" license = "MIT OR Apache-2.0" edition = "2021"