chore(docs): increase vitepress build memory limit #110
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'CI: Docs Cleanup' | |
| on: | |
| pull_request_target: | |
| types: [closed] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| cleanup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Remove Surge deployment | |
| run: | | |
| DEPLOY_DOMAIN=preview-${{ github.event.pull_request.number }}-tiny-robot.surge.sh | |
| echo "Removing deployment: $DEPLOY_DOMAIN" | |
| npx surge teardown $DEPLOY_DOMAIN --token $SURGE_TOKEN | |
| env: | |
| SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
| continue-on-error: true | |
| - name: Comment cleanup status | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const marker = process.env.COMMENT_MARKER; | |
| const body = process.env.COMMENT_BODY; | |
| const issue_number = Number(process.env.PR_NUMBER); | |
| const comments = await github.paginate(github.rest.issues.listComments, { | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number, | |
| per_page: 100, | |
| }); | |
| const existingComment = comments.find((comment) => | |
| comment.user?.login === 'github-actions[bot]' && | |
| comment.body?.includes(marker) | |
| ); | |
| if (existingComment) { | |
| await github.rest.issues.updateComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| comment_id: existingComment.id, | |
| body, | |
| }); | |
| } else { | |
| await github.rest.issues.createComment({ | |
| issue_number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body, | |
| }); | |
| } | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| COMMENT_MARKER: '<!-- DEPLOY_PREVIEW -->' | |
| COMMENT_BODY: | | |
| ## 🧹 Preview Cleaned Up | |
| The preview deployment has been removed. | |
| <!-- DEPLOY_PREVIEW --> |