From c7c33a7e0d45eebb8d0497f86530b2b91528d8f6 Mon Sep 17 00:00:00 2001 From: Samuel Rince Date: Tue, 2 Jul 2024 14:31:55 +0200 Subject: [PATCH] ci: change step order gh-pages checkout --- .github/workflows/publish-docs.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index ae89c74..ce3f502 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -14,6 +14,11 @@ jobs: deploy: runs-on: ubuntu-latest steps: + - name: Checkout gh-pages + uses: actions/checkout@v4 + with: + ref: gh-pages + # check-out repo and set-up python - name: Check out repository uses: actions/checkout@v4 @@ -40,11 +45,6 @@ jobs: if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --only docs - - name: Checkout gh-pages - uses: actions/checkout@v4 - with: - ref: gh-pages - # deploy github pages (dev) - name: Deploy GitHub Pages (dev) if: "github.ref == 'refs/heads/main'"