forked from projectnessie/nessie
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.09 KB
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Site
on:
push:
branches: [ main ]
paths:
- 'site/**'
jobs:
site:
name: Build & Deploy Website
runs-on: ubuntu-20.04
if: ${{ github.repository == 'projectnessie/nessie' }}
steps:
- uses: actions/checkout@v3.2.0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: 'site/requirements.txt'
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip
- name: Install dependencies
run: python3 -m pip install -r ./site/requirements.txt
- name: Generate Static Site
run: mkdocs build
working-directory: ./site
- name: Deploy Static Site to GitHub
uses: peaceiris/actions-gh-pages@v3
with:
external_repository: projectnessie/projectnessie.github.io
publish_branch: main
deploy_key: ${{ secrets.NESSIE_SITE_DEPLOY_KEY }}
publish_dir: ./site/site
cname: projectnessie.org