Skip to content

Commit 557335a

Browse files
committed
New workflow
1 parent 54fd6d4 commit 557335a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/auto-deploy.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches: [ main ]
5+
workflow_dispatch:
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Fetch GitHub data
26+
run: npm run fetch-data
27+
env:
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
continue-on-error: true
30+
31+
- name: Build
32+
run: npm run build
33+
34+
- name: Deploy to GitHub Pages
35+
uses: JamesIves/github-pages-deploy-action@v4
36+
with:
37+
folder: dist
38+
branch: gh-pages
39+
clean: true

0 commit comments

Comments
 (0)