Bump astro from 5.7.12 to 5.15.6 #26
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: Check, build, and deploy the HONC docs website | |
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| paths: | |
| - "docs/**" | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for proper branch detection | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.11.0 | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| env: | |
| CI: true | |
| - name: Build website | |
| run: pnpm build:docs | |
| - name: Deploy preview | |
| id: deploy | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| workingDirectory: ./docs | |
| command: pages deploy ./dist --branch ${{ github.ref_name }} | |
| - name: Comment PR | |
| uses: actions/github-script@v6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const deployUrl = '${{ steps.deploy.outputs.deployment-url }}'; | |
| const aliasUrl = '${{ steps.deploy.outputs.pages-deployment-alias-url }}'; | |
| const { issue: { number: issueNumber }, repo: { owner, repo } } = context; | |
| github.rest.issues.createComment({ | |
| owner, | |
| repo, | |
| issue_number: issueNumber, | |
| body: `🚀 Preview deployment is ready!\n\n**Main URL:** [${deployUrl}](${deployUrl})\n**Branch-specific URL:** [${aliasUrl}](${aliasUrl})` | |
| }); | |