From: Claromes Date: Fri, 14 Jun 2024 10:07:32 +0000 (-0300) Subject: update deploy X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=ae46c4a1de5a93bc8f9a4dcf15de8cba1d9c1a5c;p=waybacktweets.git update deploy --- diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 80927d1..2eaf111 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -11,20 +11,21 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 - - name: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python3 - - - name: Install dependencies - run: | - poetry install + with: + python-version: 3.11 + - uses: abatilo/actions-poetry@v2.1.3 + - name: install + run: poetry install - name: Sphinx build run: | - sphinx-build docs _build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push'}} + mkdir gh-pages + touch gh-pages/.nojekyll + cd docs/ + poetry run sphinx-build -b html . _build + cp -r _build/* ../gh-pages/ + - name: Deploy documentation + if: ${{ github.event_name == 'push' }} + uses: JamesIves/github-pages-deploy-action@4.1.4 with: - publish_branch: gh-pages - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: _build/ - force_orphan: true + branch: gh-pages + folder: gh-pages