mhausenblas / mkdocs-deploy-gh-pages

GitHub Action to deploy an MkDocs site to GitHub Pages
Apache License 2.0
250 stars 90 forks source link

action.sh: line 53: mkdocs: command not found #93

Open Hkr32 opened 3 years ago

Hkr32 commented 3 years ago

Tell me, what am I doing wrong? If you leave @master, then everything is collected, but the styles are curves

https://github.com/xenforo-ru/docs/runs/2265970611?check_suite_focus=true

if i use @master, there is no error https://github.com/xenforo-ru/docs/runs/2265877817?check_suite_focus=true

ghost commented 3 years ago

@Hkr32 the nomaterial branch does not contain mkdocs, please add a requirements.txt file with the following content:

mkdocs

This is already reported here, we didn't have time to fix it yet: #80

zhuchcn commented 3 years ago

Just in case you really don't want to add a requirement.txt to your repo like me, you can add a step in your workflow yaml before calling mhausenblas/mkdocs-deploy-gh-pages@nomaterial

steps:
  - name: Checkout main
    uses: actions/checkout@v2

  - name: install mkdocs
    run: echo 'mkdocs' > requirements.txt

  - name: Deploy docs
    uses: mhausenblas/mkdocs-deploy-gh-pages@nomaterial
    env:
      GITHUB_TOKEN: ${{ secrets.DEPLOY }}
      CONFIG_FILE: mkdocs.yml