Skip to content

Commit

Permalink
Merge pull request #31 from effigies/ci/ghpages
Browse files Browse the repository at this point in the history
CI: Push to github pages on update
  • Loading branch information
effigies authored Oct 5, 2023
2 parents d0b2693 + 5318cfe commit f3418d9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Deploy

on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install and Build
run: |
cd interactive
npm install
npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: ghpages
folder: interactive/build
if: github.event_name == 'push'

0 comments on commit f3418d9

Please sign in to comment.