Skip to content

Commit 0515220

Browse files
authored
Update deploy.yaml
1 parent 7ab13cb commit 0515220

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/deploy.yaml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,9 @@
11
name: Deploy to GitHub Pages
2-
32
on:
43
push:
5-
branches:
6-
- master
7-
- main
4+
branches: [ "main", "master" ]
85
workflow_dispatch:
9-
106
jobs:
117
deploy:
12-
name: Deploy to GitHub Pages
138
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-python@v3
17-
with:
18-
python-version: "3.10"
19-
architecture: "x64"
20-
- name: Install Dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
python -m pip install git+https://github.com/fastai/nbdev.git
24-
- name: Build website
25-
run: nbdev_docs
26-
- name: Deploy to GitHub Pages
27-
uses: peaceiris/actions-gh-pages@v3
28-
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
force_orphan: true
31-
publish_dir: ./_docs
32-
# The following lines assign commit authorship to the official
33-
# GH-Actions bot for deploys to `gh-pages` branch:
34-
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
35-
# The GH actions bot is used by default if you didn't specify the two fields.
36-
# You can swap them out with your own user credentials.
37-
user_name: github-actions[bot]
38-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
9+
steps: [uses: fastai/workflows/quarto-ghp@master]

0 commit comments

Comments
 (0)