Skip to content

Commit 1a0dc78

Browse files
github workshop
1 parent 67ea465 commit 1a0dc78

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ on:
4747
- workshop-page
4848

4949
jobs:
50-
build:
50+
build-and-deploy:
5151
runs-on: ubuntu-latest
5252

5353
steps:
@@ -63,9 +63,17 @@ jobs:
6363
run: |
6464
pip install mkdocs-material mkdocs-jupyter
6565
66-
- name: Build and move site to /docs
66+
- name: Build MkDocs site
6767
working-directory: docs/workshop
6868
run: |
6969
mkdocs build
7070
rm -rf ../../docs/*
7171
cp -r site/* ../../docs/
72+
73+
- name: Deploy to GitHub Pages
74+
uses: peaceiris/actions-gh-pages@v3
75+
with:
76+
github_token: ${{ secrets.GITHUB_TOKEN }}
77+
publish_dir: docs
78+
# optionally set the branch to deploy to:
79+
# publish_branch: gh-pages

0 commit comments

Comments
 (0)