Skip to content

Commit

Permalink
Update page-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MEGAGON committed Aug 7, 2023
1 parent 3435d2c commit cd6cadb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/page-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ on:
push:
branches:
- master

permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.x

Expand All @@ -26,9 +27,14 @@ jobs:
python log-to-readable-md.py "$file"
cp new.md docs/Samples/"$cnt".md
done
- name: Install material for mkdocs
run: pip install mkdocs-material
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material


- name: Build documentation
run: mkdocs build
- run: mkdocs gh-deploy --force

0 comments on commit cd6cadb

Please sign in to comment.