Skip to content

Commit

Permalink
fixes #438
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Jul 25, 2022
1 parent 942a5d6 commit 9e8f163
Show file tree
Hide file tree
Showing 31 changed files with 1,880 additions and 1,710 deletions.
65 changes: 46 additions & 19 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,55 @@ env:
HOME: /root
on:
workflow_dispatch:
workflow_run:
workflows: ["CI"]
branches: [master]
types:
- completed
push:
branches:
- master
defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-20.04
container: fastai/jekyll
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: fastai/workflows/build-docs@master
with:
username: jeremyphoward
hostname: ps625762.dreamhostps.com
dest_path: fastcore.fast.ai
ssh_key: ${{ secrets.DH_KEY }}
delete: 'yes'
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --pre nbdev
pip install -qe ".[dev]"
- run: nbdev_docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: ./docs
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com

name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --pre nbdev
pip install -qe ".[dev]"
- run: nbdev_docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: ./docs
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com

9 changes: 0 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ defaults:
shell: bash

jobs:
# filter:
# runs-on: ubuntu-latest
# if: (github.event_name == 'push' && github.event.head_commit.author.username == 'jph00') || github.event_name != 'push'
# steps:
# - run: |
# echo "passed filter"
# echo "event_name: ${{ github.event_name }}"
# echo "head_commit.author.username: ${{ github.event.head_commit.author.username }}"

fastcore:
strategy:
fail-fast: false
Expand Down
Loading

0 comments on commit 9e8f163

Please sign in to comment.