Skip to content

Commit 4f9178a

Browse files
committed
github pages initial setup
1 parent 9ee0dfc commit 4f9178a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Site on GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20.x
17+
- name: npm install and build and deploy
18+
env:
19+
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
20+
AIRTABLE_SCD_BASE_ID: ${{ secrets.AIRTABLE_SCD_BASE_ID }}
21+
run: |
22+
npm install
23+
npm run build-pages
24+
- uses: peaceiris/actions-gh-pages@v4
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./public

0 commit comments

Comments
 (0)