revert e3sm official name back to e3sm for metagrid #3
This file contains hidden or 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
| # Min Xu Copyright 2024 | |
| # deploy my mkdocs site to the github page | |
| name: build and deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-deploy-mkdocs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout repo | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: setup-python-env | |
| uses: actions/[email protected] | |
| with: | |
| python-version: '3.12' | |
| cache: pip | |
| cache-dependency-path: requirements.txt | |
| - name: build-cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| key: mx-mkdocs-${{ hashfiles('.cache/**') }} | |
| path: .cache | |
| restore-keys: | | |
| mx-mkdocs- | |
| - name: install-python-deps | |
| run: pip install -r requirements.txt | |
| - name: build-docs | |
| run: | | |
| mkdocs build --verbose --clean | |
| mkdocs --version | |
| touch ./site/.nojekyll | |
| - name: deploy-gh-page | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: ./site/ | |
| - name: save_cache | |
| uses: actions/cache/save@v4 | |
| with: | |
| key: mx-mkdocs-${{ hashfiles('.cache/**') }} | |
| path: .cache |