Skip to content

Enable GitHub Pages deployment in existing CI workflow - #1

Merged
LauraCD2 merged 3 commits into
mainfrom
copilot/update-repository-configuration
Mar 18, 2026
Merged

Enable GitHub Pages deployment in existing CI workflow#1
LauraCD2 merged 3 commits into
mainfrom
copilot/update-repository-configuration

Conversation

Copilot AI commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

This updates repository configuration so pushes to main can publish the built Astro site to GitHub Pages. The existing CI workflow is extended with a Pages deployment stage while preserving current build/check behavior.

  • Workflow-level Pages controls

    • Added workflow permissions baseline (contents: read).
    • Added Pages-specific concurrency group to avoid cross-workflow collisions:
      • group: ${{ github.workflow }}-pages
      • cancel-in-progress: false
  • New deploy job (push-only)

    • Added deploy job to .github/workflows/actions.yaml.
    • Runs only on push events and depends on build + check.
    • Grants only required deployment permissions at job scope (pages: write, id-token: write).
    • Builds dist, uploads it as Pages artifact, and deploys via official Pages actions.
deploy:
  if: github.event_name == 'push'
  needs: [build, check]
  permissions:
    pages: write
    id-token: write
  environment:
    name: github-pages
    url: ${{ steps.deployment.outputs.page_url }}
  steps:
    - uses: actions/configure-pages@v5
    - uses: actions/upload-pages-artifact@v3
      with:
        path: ./dist
    - id: deployment
      uses: actions/deploy-pages@v4

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • plus.unsplash.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/hdspgroup.github.io/hdspgroup.github.io/node_modules/.bin/astro build (dns block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/hdspgroup.github.io/hdspgroup.github.io/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 18, 2026 14:16
Co-authored-by: LauraCD2 <86331450+LauraCD2@users.noreply.github.com>
Co-authored-by: LauraCD2 <86331450+LauraCD2@users.noreply.github.com>
Copilot AI changed the title [WIP] Update repository configuration to enable deployment to GitHub Pages Enable GitHub Pages deployment in existing CI workflow Mar 18, 2026
Copilot AI requested a review from LauraCD2 March 18, 2026 14:19
@LauraCD2
LauraCD2 marked this pull request as ready for review March 18, 2026 14:23
@LauraCD2
LauraCD2 merged commit 48a5c4b into main Mar 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants