Skip to content

Commit b8c14f2

Browse files
new action
1 parent a831c7a commit b8c14f2

2 files changed

Lines changed: 31 additions & 28 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: '0'
16+
- name: Configure Git Credentials
17+
run: |
18+
git config user.name github-actions[bot]
19+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
24+
- uses: actions/cache@v4
25+
with:
26+
key: mkdocs-material-${{ env.cache_id }}
27+
path: .cache
28+
restore-keys: |
29+
mkdocs-material-
30+
- run: pip install mkdocs-material mkdocs-glightbox mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-table-reader-plugin "mkdocs-material[imaging]" mkdocs-rss-plugin
31+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)