-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 954 Bytes
/
Copy pathdeploy.yml
File metadata and controls
36 lines (30 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy Static Site
on:
push:
branches:
- main # 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' || '' }}