Skip to content

Commit 517d0de

Browse files
35C4n0rjohnstcn
andauthored
fix: make preview as pre-release (#109)
Co-authored-by: Cian Johnston <[email protected]>
1 parent 989620c commit 517d0de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pr-preview-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
RELEASE_TAG: "agentapi_${{ steps.pr.outputs.number }}"
4343
PR_NUMBER: ${{ steps.pr.outputs.number }}
44-
4544
run: |
4645
# Check if release exists
4746
if gh release view "$RELEASE_TAG" --repo ${{ github.repository }} &>/dev/null; then
@@ -52,7 +51,9 @@ jobs:
5251
gh release create "$RELEASE_TAG" ./out/* \
5352
--title "$RELEASE_TAG" \
5453
--notes "Preview release for PR #${PR_NUMBER}" \
55-
--repo ${{ github.repository }}
54+
--repo ${{ github.repository }} \
55+
--latest=false \
56+
--prerelease
5657
fi
5758
5859
- name: Comment on PR
@@ -66,5 +67,5 @@ jobs:
6667
issue_number: prNumber,
6768
owner: context.repo.owner,
6869
repo: context.repo.repo,
69-
body: `✅ Preview binaries are ready!\n\nTo test with modules: \`\`\`agentapi: ${prNumber}\`\`\` or download from: ${repoUrl}/releases/tag/${releaseTag}`
70+
body: `✅ Preview binaries are ready!\n\nTo test with modules: \`\`\`agentapi_version = "agentapi_${prNumber}"\`\`\` or download from: ${repoUrl}/releases/tag/${releaseTag}`
7071
});

0 commit comments

Comments
 (0)