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