-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 896 Bytes
/
main.yml
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
name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2 # This action checks out your repository
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20.9.0' # Use whatever node version your project requires
- name: Install Dependencies
run: yarn install
- name: Build Project
run: yarn build # Use the correct build command for your project. It may include 'dist' as part of the script in your package.json.
- name: Build and Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
# You can specify additional configuration here as needed.