Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq committed Feb 20, 2021
1 parent 0268c34 commit 4fd073e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
name: Deploy
name: Deploy

on:
push:
branches:
- main

jobs:
jobs:
deploy-example-book:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9

- name: Install requirements
run: |
pip install -r my_book/requirements.txt
auto-update-conda: true
auto-activate-base: false
miniconda-version: 'latest'
python-version: 3.8
environment-file: environment.yml
activate-environment: hackweek

- name: Build book
shell: bash -l {0}
run: |
jupyter-book build my_book/my_book/
jupyter-book build book/
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: my_book/my_book/_build/html
publish_dir: book/_build/html
publish_branch: gh-pages
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: hackweek-template
name: hackweek
channels:
- conda-forge
dependencies:
Expand Down

0 comments on commit 4fd073e

Please sign in to comment.