From 7b5c5a19f0a1a5483cf9d456dd4149f0a59c5ba1 Mon Sep 17 00:00:00 2001 From: epignatelli Date: Mon, 8 Jul 2024 20:13:08 +0100 Subject: [PATCH] fix requirements for gh-deploy --- .github/workflows/CD.yml | 34 ++++++++-------------------------- .github/workflows/CI.yml | 38 -------------------------------------- 2 files changed, 8 insertions(+), 64 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 42ed1e5..7b88056 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -61,31 +61,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + 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: Build docs - run: | - mkdocs build - - name: Deploy docs - run: | - mkdocs gh-deploy - - # deploy-docs: - # name: Deploy docs - # runs-on: ubuntu-latest - # steps: - # - name: Checkout main - # uses: actions/checkout@v2 - - # - name: Deploy docs - # uses: mhausenblas/mkdocs-deploy-gh-pages@master - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # CONFIG_FILE: navix/mkdocs.yml - # EXTRA_PACKAGES: build-base - # REQUIREMENTS: navix/requirements.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 + \ No newline at end of file diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1527772..c166b2e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -84,41 +84,3 @@ jobs: exit 1 fi echo "Tag $NAVIX_VERSION will be the deployed version." - - 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" - - 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