Skip to content

Commit e57cfee

Browse files
authored
Create deploy.yml
1 parent e440a9e commit e57cfee

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 20
17+
18+
- name: Install dependencies
19+
run: npm ci
20+
21+
- name: Build
22+
run: npm run build
23+
24+
- name: Add .nojekyll file
25+
run: touch ./dist/.nojekyll
26+
27+
- name: Deploy
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
folder: dist
31+
branch: gh-pages
32+
# The following line ensures proper MIME types
33+
clean-exclude: |
34+
.nojekyll

0 commit comments

Comments
 (0)