Skip to content

Merge pull request #22 from IEEE-SB-RIT/eventUpdates #111

Merge pull request #22 from IEEE-SB-RIT/eventUpdates

Merge pull request #22 from IEEE-SB-RIT/eventUpdates #111

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main] # Trigger only on pushes to main
jobs:
build-and-deploy:
runs-on: ubuntu-latest # Fresh Ubuntu VM
permissions:
contents: write # Needed to push to gh-pages branch
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22.1.0"
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build the site
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist