diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d895b522..33d55505 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,12 @@ on: - "docs/**" - mkdocs.yml - Pipfile + - .github/workflows/ci.yml jobs: build-and-push: + permissions: + contents: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -18,11 +21,4 @@ jobs: python-version: "3.10" - run: python -m pip install --upgrade pipenv wheel - run: pipenv update - - run: pipenv run mkdocs build - - uses: actions/checkout@v3 - with: - ref: gh-pages - path: pages - - run: | - cp -v pages/index.yaml site/ - - run: pipenv run ghp-import site -p --force + - run: pipenv run mkdocs gh-deploy