Skip to content

Commit 4926cca

Browse files
committed
github action
1 parent 1104238 commit 4926cca

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/codespell.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
with:
1919
check_filenames: true
2020
check_hidden: true
21-
skip: target,.jj
21+
skip: target,.jj,*.lock
2222
ignore_words_list: crate,nd,nD

.github/workflows/docs.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-prerelease-docs:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- run: "git fetch origin gh-pages --depth=1"
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: 3.11
24+
- name: Install poetry
25+
uses: abatilo/actions-poetry@v2
26+
with:
27+
poetry-version: latest
28+
- name: Install dependencies
29+
run: "poetry install"
30+
- name: Compile and deploy docs
31+
run: |
32+
git config user.name jj-docs-bot
33+
git config user.email [email protected]
34+
poetry run -- mike deploy prerelease main --push
35+
- name: "Show `git diff --stat`"
36+
run: git diff --stat gh-pages^ gh-pages || echo "(No diffs)"

0 commit comments

Comments
 (0)