From 6a52ed47f291da08972015523c48a476d9d388f0 Mon Sep 17 00:00:00 2001 From: Edgar Date: Sun, 21 Apr 2024 18:39:05 +0200 Subject: [PATCH] :bug: Fixed gh-actions deploying --- .github/workflows/gh-pages.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7abb481e..6efc9dad 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -11,20 +11,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Prepare timestamp - id: cache_timestamp - shell: cmake -P {0} - run: | - string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) - message("::set-output name=timestamp::${current_date}") - - - name: Cache pip - uses: actions/cache@v4 + - uses: actions/setup-python@v4 with: - key: pip-${{ steps.cache_timestamp.outputs.timestamp }} - path: ~/.cache/ - restore-keys: | - pip- + python-version: "3.12" + cache: 'pip' - name: Install mk-docs run: pip install -r requirements.txt @@ -33,7 +23,7 @@ jobs: run: mkdocs build - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./site