-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Fix CI and add back check doc build (#66)
- Loading branch information
1 parent
5048322
commit 97e054a
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Check homepage build | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'examples/**' | ||
- 'docs/**' | ||
- 'zeus/**' | ||
- 'mkdocs.yml' | ||
- 'docker/Dockerfile' | ||
- '.github/workflows/check_homepage_build.yaml' | ||
|
||
# Jobs initiated by previous pushes get cancelled by a new push. | ||
concurrency: | ||
group: ${{ github.ref }}-check-homepage-build | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
if: github.event.repository.fork == false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- name: Install other homepage dependencies | ||
run: pip install '.[docs]' | ||
- name: Build homepage | ||
run: mkdocs build --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
branches: | ||
- master | ||
paths: | ||
- 'examples/**' | ||
- 'docs/**' | ||
- 'zeus/**' | ||
- 'mkdocs.yml' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters