From 9222e8cd182384f61b2e8277b9c29d168ac8127a Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Wed, 3 Apr 2024 11:22:38 +0300 Subject: [PATCH] try new workflow --- .github/workflows/build-docs.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index fb771cbb..fc7897ad 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -17,11 +17,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/checkout@v4 - with: - ref: "gh-pages" - repository: ${{ github.event.pull_request.head.repo.full_name }} - - name: Set up Python uses: actions/setup-python@v3 - name: Install dependencies @@ -33,12 +28,16 @@ jobs: run: | cd docs/ make html + + - uses: actions/checkout@v4 + with: + ref: "gh-pages" + repository: ${{ github.event.pull_request.head.repo.full_name }} + - name: Deploy to GitHub Pages run: | git config --global user.email "actions@github.com" git config --global user.name "GitHub Actions" - git checkout gh-pages - git pull origin gh-pages rm -rf * mv -f ${{ github.workspace }}/docs/_build/html/* . touch .nojekyll