Skip to content

Commit

Permalink
build book in surge step
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq committed Jun 20, 2024
1 parent 3251f75 commit 91e7355
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/surgedeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,15 @@ jobs:
environment-file: environment.yml
cache-environment: true

- name: Build JupyterBook
run: |
jb build book
- name: Publish to Surge
- name: Build and Publish to Surge
id: preview_step
uses: afc163/surge-preview@v1
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
dist: ./book/_build/html
teardown: 'true'
build: |
npm install
npm run build
jb build book
- name: Format preview url
id: format_url
Expand Down

0 comments on commit 91e7355

Please sign in to comment.