Skip to content

chore: add deploy workflow#7

Merged
shelegdmitriy merged 2 commits into
masterfrom
chore/deploy
Jun 9, 2025
Merged

chore: add deploy workflow#7
shelegdmitriy merged 2 commits into
masterfrom
chore/deploy

Conversation

@shelegdmitriy

Copy link
Copy Markdown
Member

This pull request introduces several updates to the CI/CD pipeline, dependencies, and Vite configuration. The changes primarily focus on adding a deployment workflow for GitHub Pages, updating dependencies, and configuring a static file copy plugin in Vite.

CI/CD Updates:

  • Deployment Workflow: Added a new GitHub Actions workflow (.github/workflows/deploy.yml) to build and deploy the project to GitHub Pages. This includes steps for setting up Node.js, installing dependencies, building the project, and deploying the ./dist directory using peaceiris/actions-gh-pages.

Vite Configuration:

  • Static File Copy Plugin: Updated vite.config.ts to include the vite-plugin-static-copy plugin. This configuration copies the CNAME file to the root of the build output directory, ensuring custom domain support for GitHub Pages.

@shelegdmitriy
shelegdmitriy requested a review from Copilot June 9, 2025 21:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a deployment pipeline, updates dependencies, and configures Vite to copy a static CNAME file for GitHub Pages support.

  • Introduces a new GitHub Actions workflow to build and deploy to GitHub Pages.
  • Configures vite-plugin-static-copy in vite.config.ts to include the CNAME file in the output.
  • Adds type definitions and the static copy plugin to package.json.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

File Description
vite.config.ts Added vite-plugin-static-copy plugin to copy CNAME to dist.
package.json Added @types/node and vite-plugin-static-copy dependencies.
.github/workflows/deploy.yml New workflow for building and deploying to GitHub Pages.
.github/workflows/ci.yml Updated CI branch filters from main to master.
Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:5

  • CI branch filters were switched from 'main' to 'master'; verify this matches the repository’s default branch so CI runs as expected.
branches: ['master']

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22

Copilot AI Jun 9, 2025

Copy link

Choose a reason for hiding this comment

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

Node.js version '22' is not a released LTS; consider using a valid version like '20' or a semantic range (e.g., '18.x') to ensure the setup-node action succeeds.

Suggested change
node-version: 22
node-version: 20

Copilot uses AI. Check for mistakes.
Comment on lines +15 to +17
env:
VITE_GITHUB_TOKEN: ${{ secrets.VITE_GITHUB_TOKEN }}

Copilot AI Jun 9, 2025

Copy link

Choose a reason for hiding this comment

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

The VITE_GITHUB_TOKEN environment variable is set but never referenced; remove it or update the deploy step to use it if that was intended.

Suggested change
env:
VITE_GITHUB_TOKEN: ${{ secrets.VITE_GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.
Comment thread package.json
Comment thread package.json
@shelegdmitriy
shelegdmitriy merged commit 07570ec into master Jun 9, 2025
1 check passed
@shelegdmitriy
shelegdmitriy deleted the chore/deploy branch June 9, 2025 21:05
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