Skip to content

Commit 005ad1d

Browse files
github workshop
1 parent fd830ba commit 005ad1d

File tree

112 files changed

+48
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+48
-35
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,71 @@
1-
name: Deploy MkDocs site to GitHub Pages
1+
# name: Deploy MkDocs site to GitHub Pages
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
8+
# jobs:
9+
# deploy:
10+
# runs-on: ubuntu-latest
11+
12+
# steps:
13+
# # Checkout the repo
14+
# - name: Checkout repo
15+
# uses: actions/checkout@v3
16+
17+
# # Set up Python environment
18+
# - name: Set up Python
19+
# uses: actions/setup-python@v4
20+
# with:
21+
# python-version: '3.x'
22+
23+
# # Install MkDocs and Material theme
24+
# - name: Install MkDocs & Material theme
25+
# run: |
26+
# pip install mkdocs-material mkdocs-jupyter
27+
28+
# # Build the MkDocs site
29+
# - name: Build the site
30+
# run: |
31+
# cd workshop
32+
# mkdocs build
33+
# touch site/.nojekyll # Disable Jekyll
34+
35+
# # Deploy to GitHub Pages
36+
# - name: Deploy to GitHub Pages
37+
# uses: peaceiris/actions-gh-pages@v3
38+
# with:
39+
# github_token: ${{ secrets.GITHUB_TOKEN }}
40+
# publish_dir: workshop/site
41+
42+
name: Build and Deploy MkDocs Site into /docs
243

344
on:
445
push:
546
branches:
6-
- workshop-page # or 'master' if that’s your main branch
47+
- workshop-page
748

849
jobs:
9-
deploy:
50+
build:
1051
runs-on: ubuntu-latest
1152

1253
steps:
13-
# Checkout the repo
1454
- name: Checkout repo
1555
uses: actions/checkout@v3
1656

17-
# Set up Python environment
1857
- name: Set up Python
1958
uses: actions/setup-python@v4
2059
with:
2160
python-version: '3.x'
2261

23-
# Install MkDocs and Material theme
24-
- name: Install MkDocs & Material theme
62+
- name: Install MkDocs and dependencies
2563
run: |
2664
pip install mkdocs-material mkdocs-jupyter
2765
28-
# Build the MkDocs site
29-
- name: Build the site
66+
- name: Build and move site to /docs
3067
run: |
3168
cd workshop
3269
mkdocs build
33-
touch site/.nojekyll # Disable Jekyll
34-
35-
# Deploy to GitHub Pages
36-
- name: Deploy to GitHub Pages
37-
uses: peaceiris/actions-gh-pages@v3
38-
with:
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
40-
publish_dir: ./site
70+
rm -rf ../docs/*
71+
cp -r site/* ../docs/

workshop/docs/workshop/Challenge-1/Code_Walkthrough/01_Data_Explore.md renamed to docs/workshop/docs/workshop/Challenge-1/Code_Walkthrough/01_Data_Explore.md

workshop/docs/workshop/Challenge-1/Code_Walkthrough/02_Frontend.md renamed to docs/workshop/docs/workshop/Challenge-1/Code_Walkthrough/02_Frontend.md

workshop/docs/workshop/Challenge-1/Code_Walkthrough/03_Backend.md renamed to docs/workshop/docs/workshop/Challenge-1/Code_Walkthrough/03_Backend.md

0 commit comments

Comments
 (0)