diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3794da0..1527772 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -86,25 +86,39 @@ jobs: echo "Tag $NAVIX_VERSION will be the deployed version." deploy-docs: - name: Deploy docs runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - uses: actions/setup-python@v4 with: python-version: "3.10" - - name: Setup navix - run: | - pip install . -v - pip install -r ./docs/requirements.txt - - - name: bypass mkdocs-deploy-gh bug - run: | - echo "" > fake_req.txt + - run: pip install --upgrade pip && pip install -r docs/requirements.txt + - run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com' + - name: Publish docs + run: mkdocs gh-deploy + + # deploy-docs: + # name: Deploy docs + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-python@v4 + # with: + # python-version: "3.10" + # - name: Setup navix + # run: | + # pip install . -v + # pip install -r ./docs/requirements.txt + + # - name: bypass mkdocs-deploy-gh bug + # run: | + # echo "" > fake_req.txt - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: ./mkdocs.yml - REQUIREMENTS: ./fake_req.txt + # - name: Deploy docs + # uses: mhausenblas/mkdocs-deploy-gh-pages@master + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # CONFIG_FILE: ./mkdocs.yml + # REQUIREMENTS: ./fake_req.txt