Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jul 17, 2024
1 parent 01056bc commit 9b72353
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
prerelease: false
distPath: "../examples/apps/screen-pipe-app/dist"
appVersion: ${{ github.ref_name }}
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
description = "Trigger actions based on your screen"
description = ""
repository = "https://github.com/louis030195/screen-pipe"
license = "MIT OR Apache-2.0"
edition = "2021"
Expand Down

0 comments on commit 9b72353

Please sign in to comment.