Skip to content

Commit d853522

Browse files
committed
docs: add publish workflow
1 parent 8e0ec3e commit d853522

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Only on master now
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v2
14+
15+
- name: Setup PNPM
16+
uses: pnpm/action-setup@master
17+
with:
18+
version: latest
19+
20+
- name: Install and Build 🔧
21+
run: |
22+
pnpm install
23+
pnpm run build
24+
25+
- name: Deploy 🚀
26+
uses: JamesIves/[email protected]
27+
with:
28+
branch: gh-pages # The branch the action should deploy to.
29+
folder: _site # The folder the action should deploy.

0 commit comments

Comments
 (0)