Skip to content

Add GitHub Actions workflow for GitHub Pages deployment#1

Merged
kamilsa merged 2 commits intomasterfrom
workflow
Mar 5, 2026
Merged

Add GitHub Actions workflow for GitHub Pages deployment#1
kamilsa merged 2 commits intomasterfrom
workflow

Conversation

@kamilsa
Copy link
Owner

@kamilsa kamilsa commented Mar 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 5, 2026 10:26
@kamilsa kamilsa merged commit 484b26f into master Mar 5, 2026
@kamilsa kamilsa deleted the workflow branch March 5, 2026 10:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to build the Astro static site and deploy the generated dist artifact to GitHub Pages.

Changes:

  • Introduces a two-job Pages pipeline: build (install + build + upload artifact) and deploy (deploy artifact to Pages).
  • Configures Node.js (v22) with npm caching and sets required GitHub Pages permissions/concurrency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.


on:
push:
branches: [master]
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on.push.branches is set to master, but this repo appears to use main as the base branch (see PR diff header index main..branch). As-is, this workflow likely won't run on normal pushes. Update the branch filter to main (or include both main and master if needed).

Suggested change
branches: [master]
branches: [main, master]

Copilot uses AI. Check for mistakes.
node-version: 22
cache: npm

- run: npm install
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses npm install even though a package-lock.json is present. In CI, prefer npm ci for deterministic installs and faster, more reliable builds (it will fail if the lockfile is out of sync).

Suggested change
- run: npm install
- run: npm ci

Copilot uses AI. Check for mistakes.
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