Skip to content

Commit f3418d9

Browse files
authored
Merge pull request #31 from effigies/ci/ghpages
CI: Push to github pages on update
2 parents d0b2693 + 5318cfe commit f3418d9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ghpages.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build-and-publish:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Install and Build
23+
run: |
24+
cd interactive
25+
npm install
26+
npm run build
27+
28+
- name: Deploy
29+
uses: JamesIves/[email protected]
30+
with:
31+
branch: ghpages
32+
folder: interactive/build
33+
if: github.event_name == 'push'

0 commit comments

Comments
 (0)