Skip to content

Commit

Permalink
CLI: fix release job (#4728)
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg authored Jul 2, 2024
1 parent f0c2444 commit 68d1b40
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 57 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/agent-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,58 +47,3 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm publish --no-git-checks agent
- run: pnpm -C agent run build-agent-binaries
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Cody Agent ${{ env.EXT_VERSION }}
draft: false
- name: upload release asset (linux-arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./agent/dist/cody-agent-linux-arm64
asset_name: cody-agent-linux-arm64-${{ env.EXT_VERSION }}
asset_content_type: application/octet-stream
- name: upload release asset (linux-x64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./agent/dist/cody-agent-linux-x64
asset_name: cody-agent-linux-x64-${{ env.EXT_VERSION }}
asset_content_type: application/octet-stream
- name: upload release asset (macos-arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./agent/dist/cody-agent-macos-arm64
asset_name: cody-agent-macos-arm64-${{ env.EXT_VERSION }}
asset_content_type: application/octet-stream
- name: upload release asset (macos-x64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./agent/dist/cody-agent-macos-x64
asset_name: cody-agent-macos-x64-${{ env.EXT_VERSION }}
asset_content_type: application/octet-stream
- name: upload release asset (win-x64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./agent/dist/cody-agent-win-x64.exe
asset_name: cody-agent-win-x64-${{ env.EXT_VERSION }}.exe
asset_content_type: application/octet-stream
2 changes: 0 additions & 2 deletions agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ The following commands assume you are in the `agent` directory:
| `pnpm build` | Build `dist/index.js` Node.js script for running the agent |
| `node dist/index.js` | Run the agent after `pnpm build`. You normally do this from a client integration. |
| `node --inspect dist/index.js` | Run the agent with debugging enabled (see `chrome://inspect/`, [more details](https://nodejs.org/en/docs/guides/debugging-getting-started/)) |
| `pnpm build-agent-binaries` | Build standalone binaries for macOS, Linux, and Windows to `dist/` directory. |
| `AGENT_EXECUTABLE_TARGET_DIRECTORY=/somewhere pnpm build-agent-binaries` | Build standalone binaries for macOS, Linux, and Windows to `/somewhere` directory |
| `pnpm run test` | Run all agent-related tests |
| (optional) `src login` | Make sure you are logged into your Sourcegraph instance, which is required to run the e2e test in `index.test.ts` |
| `pnpm run test src/index.test.ts` | Run e2e test, requires `src login` to work. |
Expand Down

0 comments on commit 68d1b40

Please sign in to comment.