Skip to content

Commit

Permalink
🐛 Fixed gh-actions deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Apr 21, 2024
1 parent af2d312 commit 6a52ed4
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6a52ed4

Please sign in to comment.