Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu authored Jul 27, 2022
1 parent 7ab13cb commit 0515220
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,9 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master
- main
branches: [ "main", "master" ]
workflow_dispatch:

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
architecture: "x64"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/fastai/nbdev.git
- name: Build website
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:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# 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
steps: [uses: fastai/workflows/quarto-ghp@master]

0 comments on commit 0515220

Please sign in to comment.