Skip to content

Code change to check dev branch #18

Code change to check dev branch

Code change to check dev branch #18

Workflow file for this run

name: Deploy to GitHub Pages - Development
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Dependencies
run: npm install
- name: Build Project
run: VITE_BASE_URL=/react-ci-cd-testing/dev/ npm run build -- --mode development
- name: Upload artifact to enable deployment
uses: actions/upload-artifact@v4
with:
name: production-files
path: ./dist
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REACT_CI_CD_TOKEN }}
publish_dir: ./dist
destination_dir: dev