Skip to content

Add CI/CD workflow for static bank site #1

Add CI/CD workflow for static bank site

Add CI/CD workflow for static bank site #1

Workflow file for this run

name: CI/CD Static Bank Site
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build site (optional for static site)
run: npm run build || echo "No build step needed for static site"
- name: Test (optional)
run: npm run test || echo "No tests defined"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./ # your static site root folder