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

Update workflow.yml #25

Update workflow.yml

Update workflow.yml #25

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
env:
CI: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build React app
run: npm run build -- --no-warnings # Passing --no-warnings to ignore warnings as errors
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
ACCESS_TOKEN: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: build
- name: permissions
id-token: write