Skip to content

Commit 4d69901

Browse files
committed
ci: fix agent docs generation and remove PR Pages deployment
1 parent f1b5948 commit 4d69901

1 file changed

Lines changed: 19 additions & 36 deletions

File tree

.github/workflows/main.yml

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ jobs:
5656
- name: Install dependencies
5757
run: bundle install
5858

59-
- name: Generate agent docs
60-
run: bundle exec rake labdev:sync:docs
61-
62-
- name: Build gem package
63-
run: bundle exec rake gemdo:build_gem
59+
- name: Build site and gem
60+
run: |
61+
bundle exec rake build_site
62+
bundle exec rake gemdo:build_gem
6463
6564
- name: Upload site artifact
6665
uses: actions/upload-artifact@v4
@@ -76,48 +75,32 @@ jobs:
7675
path: gems/docopslab-dev/pkg/*.gem
7776
retention-days: 30
7877

79-
# Deploy staging preview for PRs
80-
deploy-staging:
81-
name: Deploy PR Preview
78+
# PR artifacts comment
79+
pr-artifacts:
80+
name: PR Artifacts
8281
if: github.event_name == 'pull_request'
8382
needs: build-site
8483
runs-on: ubuntu-latest
85-
environment:
86-
name: pr-preview-${{ github.event.pull_request.number }}
87-
url: ${{ steps.deployment.outputs.page_url }}
8884
steps:
89-
- name: Download site artifact
90-
uses: actions/download-artifact@v4
91-
with:
92-
name: site-${{ github.sha }}
93-
path: _site
94-
95-
- name: Setup Pages
96-
uses: actions/configure-pages@v4
97-
98-
- name: Upload to Pages
99-
uses: actions/upload-pages-artifact@v3
100-
with:
101-
path: _site
102-
103-
- name: Deploy to GitHub Pages (Preview)
104-
id: deployment
105-
uses: actions/deploy-pages@v4
106-
107-
- name: Comment PR with preview URL
85+
- name: Comment PR with artifact info
10886
uses: actions/github-script@v7
10987
with:
11088
script: |
111-
const url = '${{ steps.deployment.outputs.page_url }}';
112-
const body = `## 🚀 Preview Deployment Ready!
89+
const body = `## ✅ Build Complete!
90+
91+
Your changes have been built successfully. Download the artifacts to review:
11392
114-
Your changes have been deployed to a preview environment:
93+
- **Site Build**: Available in workflow artifacts as \`site-${{ github.sha }}\`
94+
- **Gem Package**: Available in workflow artifacts as \`gem-${{ github.sha }}\`
11595
116-
**Preview URL:** ${url}
96+
To preview the site locally:
97+
\`\`\`bash
98+
SHA=${{ github.sha }} GITHUB_TOKEN=<your-token> bundle exec rake review:serve
99+
\`\`\`
117100
118-
This preview will be updated automatically with new commits to this PR.
101+
This will automatically fetch, extract, and serve the review site at http://localhost:4001
119102
120-
ℹ️ Preview deployments are temporary and will be removed after the PR is merged or closed.`;
103+
This build will be updated automatically with new commits to this PR.`;
121104
122105
github.rest.issues.createComment({
123106
issue_number: context.issue.number,

0 commit comments

Comments
 (0)