Skip to content

Commit 7a55fd9

Browse files
committed
ci: build and deploy website on push
1 parent 73040c2 commit 7a55fd9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- release/2.2.0
6+
- master
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: 3.x
17+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
18+
- uses: actions/cache@v3
19+
with:
20+
key: mkdocs-material-${{ env.cache_id }}
21+
path: .cache
22+
restore-keys: |
23+
mkdocs-material-
24+
- run: pip install mkdocs-material
25+
- run: pip install git+https://github.com/PauloASilva/mkdocs-monorepo-plugin@feat/i18n
26+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)