Skip to content

Create CNAME

Create CNAME #3

Workflow file for this run

name: Deploy React App
on:
push:
branches: [ main ] # Trigger on push to main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # or your preferred Node.js version
- name: Install dependencies
run: npm install
- name: Build
run: |
npm install
npm run build --if-present --ignore-scripts --prefer-offline --silent --unsafe-perm --no-progress --no-audit --no-optional --no-fund --loglevel=error
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # or your build output directory