diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..18666874 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: build + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + key: mkdocs-material-${{ env.cache_id }} + path: ~/.cache + restore-keys: | + mkdocs-material- + - run: pip install -r requirements.txt + - run: mkdocs build diff --git a/.github/workflows/ci.yml b/.github/workflows/deploy.yml similarity index 96% rename from .github/workflows/ci.yml rename to .github/workflows/deploy.yml index e31b21a8..4d1b966b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/deploy.yml @@ -1,12 +1,14 @@ -name: ci +name: deploy + on: push: branches: - main + permissions: - contents: write pages: write id-token: write + jobs: deploy: runs-on: ubuntu-latest diff --git a/mkdocs.yml b/mkdocs.yml index d5ccd2b6..737751f8 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,7 +5,7 @@ site_url: https://status.ocf.berkeley.edu # repo_name: ocf/mkdocs-status # edit_uri: edit/main/docs/ -theme: +theme name: material logo: assets/penguin.svg favicon: assets/favicon.ico