Skip to content

fix to github action #59

fix to github action

fix to github action #59

Workflow file for this run

name: aiida-atomistic GitHub Pages Deploy
on:
push:
# Runs on pushes targeting the default branch
branches: [main, develop, mkdocs]
env:
# `BASE_URL` determines the website is served from, including CSS & JS assets
# You may need to change this to: `BASE_URL: ''`
BASE_URL: /${{ github.event.repository.name }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- 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 "mkdocs-material<10" "mkdocs<2" mkdocs-git-revision-date-localized-plugin mkdocstrings[python]
- run: mkdocs gh-deploy --force