Skip to content

Commit

Permalink
fix yaml syntax (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed Jul 2, 2024
1 parent 37f8f47 commit 4b13cce
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
name: deploy

on:
# Trigger the workflow on push to main branch
push:
branches:
- main

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-and-deploy-book:
name: Build book
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: biochemist-python
environment-file: requirements.yaml

# Build the book
- name: Build the book
shell: bash -l {0}
run: |
jupyter-book build biochemist-python
- name: Build the book
shell: bash -l {0}
run: |
jupyter-book build biochemist-python
# Deploy the book's HTML to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: biochemist-python/_build/html
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: biochemist-python/_build/html

0 comments on commit 4b13cce

Please sign in to comment.