From 936f1727314496a7e08e1ceb2ad8b1c11247e2e7 Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Wed, 27 Sep 2023 12:49:01 +0200 Subject: [PATCH] fix(ci): retry release 7 --- .github/workflows/build-test-publish-on-push.yml | 6 ++++-- packages/agent-explore/README.md | 1 - packages/plugin/README.md | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-publish-on-push.yml b/.github/workflows/build-test-publish-on-push.yml index 8799ecfd..c719d651 100644 --- a/.github/workflows/build-test-publish-on-push.yml +++ b/.github/workflows/build-test-publish-on-push.yml @@ -73,6 +73,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.GH_TOKEN }} + ref: ${{ github.ref }} - uses: pnpm/action-setup@v2 with: @@ -93,8 +94,9 @@ jobs: with: github_token: ${{ secrets.GH_TOKEN }} - # release the app after building if matching branch - release: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' }} + # If the commit is tagged with a version (e.g. "v1.0.0"), + # release the app after building + release: ${{ startsWith(github.ref, 'refs/tags/v') }} package_root: "./packages/agent-explore" build_script_name: build-electron package_manager: pnpm diff --git a/packages/agent-explore/README.md b/packages/agent-explore/README.md index e145db32..a45a18a5 100644 --- a/packages/agent-explore/README.md +++ b/packages/agent-explore/README.md @@ -20,4 +20,3 @@ You can specify a default agent configuration ```bash agent-explore serve --port 8080 --schemaUrl https://example.ngrok.io/open-api.json --apiKey test123 --name Agent ``` - diff --git a/packages/plugin/README.md b/packages/plugin/README.md index bb2a8100..620e2775 100644 --- a/packages/plugin/README.md +++ b/packages/plugin/README.md @@ -47,4 +47,3 @@ const Plugin: IPlugin = { }; ``` -