Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: pull_request

jobs:
create-release:
permissions: write-all
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.create-release.outputs.result }}
Expand All @@ -16,22 +17,22 @@ jobs:
node-version: 16
- name: get version
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
# - name: create release
# id: create-release
# uses: actions/github-script@v6
# with:
# script: |
# const { data } = await github.rest.repos.createRelease({
# owner: context.repo.owner,
# repo: context.repo.repo,
# tag_name: `app-v${process.env.PACKAGE_VERSION}`,
# name: `Desktop App v${process.env.PACKAGE_VERSION}`,
# body: 'Take a look at the assets to download and install this app.',
# draft: true,
# prerelease: false
# })
# return data.id
- name: create release
id: create-release
uses: actions/github-script@v6
with:
script: |
const { data } = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${process.env.PACKAGE_VERSION}`,
name: `Orca Recorder - v${process.env.PACKAGE_VERSION}`,
body: 'Take a look at the assets to download and install this app.',
draft: true,
prerelease: false
})

return data.id

build-tauri:
needs: create-release
Expand All @@ -47,6 +48,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.2
with:
version: 6.0.2
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
Expand All @@ -57,7 +61,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: install app dependencies and build it
run: pnpm && pnpm tauri build
run: pnpm install && pnpm tauri build
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# agent
Orca Agent Recorder - this will act as recorder and
Orca Agent Recorder - this will act as recorder