Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

ops(cicd): fix gh-action cicd #8

ops(cicd): fix gh-action cicd

ops(cicd): fix gh-action cicd #8

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3
# Step 2: Setup Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22' # Specify the Node.js version you prefer
# Step 3: Install dependencies
- name: Install Dependencies
run: npm install
# Step 4: Build the React app
- name: Build
run: npm run build
# Step 5: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
# If deploying to a project site, specify the repository name
# For user or organization pages, you can omit the repository name
# repository_name: your-username/your-repo