Skip to content

feat: fix website delivery method #8

feat: fix website delivery method

feat: fix website delivery method #8

Workflow file for this run

name: Deploy Static Site
on:
push:
branches:
- testdeploy # Your primary branch
permissions:
contents: write # REQUIRED for the action to push to the gh-pages branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
# Setup Node.js to run your scripts
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20' # Use a stable Node version
# Install dependencies and build
- name: Install dependencies and Build 🏗️
run: |
npm install
npm run build
# Deploy the contents of the 'dist' folder
- name: Deploy to GitHub Pages 🚀
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: ${{ contains(github.ref, 'main') && 'rignitc.com' || '' }}