From 69ad0eb979c9d8add133c9a171c7ccd56f14e1ef Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 20:40:13 +0530 Subject: [PATCH 1/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ec79f4..aba5f05 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # agent -Orca Agent Recorder - this will act as recorder and +Orca Agent Recorder - this will act as recorder From ffeb620bb9ccab46aa92732b4a266abe20462760 Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 20:43:20 +0530 Subject: [PATCH 2/7] Update build-app.yml --- .github/workflows/build-app.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 55c8b52..340fec7 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -47,6 +47,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: From 1dcad3846410e3079948d23652886e9293f07206 Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 20:46:43 +0530 Subject: [PATCH 3/7] Update build-app.yml --- .github/workflows/build-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 340fec7..be3ef7a 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -60,7 +60,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 tauri build - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 12e5cd829a867a60195bbf50fe9ec3398d64fcee Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 20:48:54 +0530 Subject: [PATCH 4/7] Update build-app.yml --- .github/workflows/build-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index be3ef7a..1d6e370 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -60,7 +60,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 tauri build + run: pnpm install && pnpm tauri build - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4b4ee90461bbb36729b52c62eeeca29a44024ab2 Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 21:33:58 +0530 Subject: [PATCH 5/7] Update build-app.yml --- .github/workflows/build-app.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 1d6e370..7d2335a 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -16,22 +16,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 -# }) + - 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 + return data.id build-tauri: needs: create-release From 19e858525f86fece4ae9e784ab2325b6db5962e4 Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 21:48:16 +0530 Subject: [PATCH 6/7] Updated the release info --- .github/workflows/build-app.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 55c8b52..9f5a5c6 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -16,22 +16,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 From 0c98365acf6c16daba3b89fd03a4f9a34728b035 Mon Sep 17 00:00:00 2001 From: Vasanth Kumar Date: Fri, 29 Jul 2022 21:54:13 +0530 Subject: [PATCH 7/7] Updated the release info --- .github/workflows/build-app.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index fada0e2..7ecfbb3 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -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 }}