Skip to content

Commit

Permalink
Chore: Fix CI and add back check doc build (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung authored May 7, 2024
1 parent 5048322 commit 97e054a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check_homepage_build.yaml
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
1 change: 1 addition & 0 deletions .github/workflows/deploy_homepage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
paths:
- 'examples/**'
- 'docs/**'
- 'zeus/**'
- 'mkdocs.yml'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down

0 comments on commit 97e054a

Please sign in to comment.