@@ -18,7 +18,7 @@ A GitHub Action to deploy agents to the [Runloop](https://runloop.ai) platform.
1818
1919``` yaml
2020- name : Deploy agent
21- uses : runloop /deploy-agent@v1
21+ uses : runloopai /deploy-agent@main
2222 with :
2323 api-key : ${{ secrets.RUNLOOP_API_KEY }}
2424 source-type : git
@@ -59,7 +59,7 @@ That's it! The action will automatically use your current repository and commit
5959
6060` ` ` yaml
6161- uses: actions/checkout@v4
62- - uses: runloop /deploy-agent@v1
62+ - uses: runloopai /deploy-agent@main
6363 with:
6464 api-key: ${{ secrets.RUNLOOP_API_KEY }}
6565 source-type: git
8080 runs-on: ubuntu-latest
8181 steps:
8282 - uses: actions/checkout@v4
83- - uses: runloop /deploy-agent@v1
83+ - uses: runloopai /deploy-agent@main
8484 with:
8585 api-key: ${{ secrets.RUNLOOP_API_KEY }}
8686 source-type: git
@@ -101,7 +101,7 @@ Basic example:
101101
102102# Then deploy it
103103- name: Deploy agent
104- uses: runloop /deploy-agent@v1
104+ uses: runloopai /deploy-agent@main
105105 with:
106106 api-key: ${{ secrets.RUNLOOP_API_KEY }}
107107 source-type: tar
@@ -119,7 +119,7 @@ You can also use `.tar` format or reference output from a previous step:
119119 make package
120120 echo "archive-path=dist/my-agent.tar.gz" >> $GITHUB_OUTPUT
121121
122- - uses: runloop /deploy-agent@v1
122+ - uses: runloopai /deploy-agent@main
123123 with:
124124 api-key: ${{ secrets.RUNLOOP_API_KEY }}
125125 source-type: tar
@@ -129,7 +129,7 @@ You can also use `.tar` format or reference output from a previous step:
129129# ## Single File
130130
131131` ` ` yaml
132- - uses: runloop /deploy-agent@v1
132+ - uses: runloopai /deploy-agent@main
133133 with:
134134 api-key: ${{ secrets.RUNLOOP_API_KEY }}
135135 source-type: file
@@ -158,13 +158,25 @@ Store your Runloop API key as a GitHub secret:
158158pnpm install
159159` ` `
160160
161+ # ## Testing with act
162+
163+ You can test the action locally using [act](https://github.com/nektos/act) :
164+
165+ ` ` ` bash
166+ act -j deploy --secret RUNLOOP_API_KEY=your_api_key
167+ ` ` `
168+
161169# ## Building
162170
171+ The action uses [@vercel/ncc](https://github.com/vercel/ncc) to bundle all dependencies into a single file.
172+
163173` ` ` bash
164- pnpm run build # Build TypeScript
174+ pnpm run build # Bundle with ncc (creates dist/index.js)
165175pnpm run rebuild # Clean and build
166176` ` `
167177
178+ After building, commit the `dist/` folder as it's required for the action to run.
179+
168180# ## Code Quality
169181
170182` ` ` bash
0 commit comments