Skip to content

Commit 707c920

Browse files
authored
Merge pull request #236 from autoscrape-labs/feat/expect-download
docs: update GitHub Actions for deploying site and add landing page
2 parents 449ac0c + 02cd90c commit 707c920

File tree

3 files changed

+829
-25
lines changed

3 files changed

+829
-25
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: Deploy MkDocs to GitHub Pages
1+
name: Deploy site + docs
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76

87
jobs:
98
deploy:
109
runs-on: ubuntu-latest
11-
1210
steps:
13-
- name: Code Checkout
14-
uses: actions/checkout@v3
11+
- name: Code Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.x'
1518

16-
- name: Setup Python
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: '3.x'
19+
- name: Install Dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install mkdocs mkdocs-material pymdown-extensions mkdocstrings[python] mkdocs-static-i18n
2023
21-
- name: Install Dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install mkdocs
25-
pip install mkdocs-material
26-
pip install pymdown-extensions
27-
pip install mkdocstrings[python]
28-
pip install mkdocs-static-i18n
24+
- name: Build MkDocs into site/docs
25+
run: mkdocs build --strict
2926

30-
- name: Build the documentation
31-
run: mkdocs build
27+
- name: Add landing to site/
28+
run: |
29+
mkdir -p site
30+
cp -r docs/landing/* site/
3231
33-
- name: Deploy to GitHub Pages
34-
uses: peaceiris/actions-gh-pages@v3
35-
with:
36-
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: ./site
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v3
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./site
37+
cname: pydoll.tech

0 commit comments

Comments
 (0)