Skip to content

Commit ac079e3

Browse files
committed
feat: deploy workflow
1 parent 87deaca commit ac079e3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# .github/workflows/deploy.yml
2+
name: Deploy main branch
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
deploy-preview:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pages: write
13+
pull-requests: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Setup node env
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
check-latest: true
22+
- name: Checkout
23+
run: |
24+
npm install
25+
npm run build -- --base /${{ github.event.repository.name }}/
26+
cp .eodash/dist/index.html .eodash/dist/404.html
27+
touch .eodash/dist/.nojekyll
28+
- name: Deploy
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
folder: ./.eodash/dist/
32+
branch: gh-pages
33+
clean-exclude: pr-preview

0 commit comments

Comments
 (0)