Skip to content

Commit 77c3fad

Browse files
committed
Added build & deploy workflow.
1 parent 69232e7 commit 77c3fad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- source
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '18.x'
17+
- name: Install dependencies
18+
run: yarn install
19+
- name: Build the website
20+
run: yarn build
21+
- name: Deploy to GitHub Pages
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./build

0 commit comments

Comments
 (0)