File tree Expand file tree Collapse file tree 6 files changed +628
-765
lines changed
Expand file tree Collapse file tree 6 files changed +628
-765
lines changed Original file line number Diff line number Diff line change @@ -9,51 +9,36 @@ permissions: {}
99
1010jobs :
1111 build :
12- runs-on : ubuntu-22 .04
12+ runs-on : ubuntu-24 .04
1313 permissions :
1414 contents : read
1515 steps :
1616 - uses : actions/checkout@v5
1717 with :
1818 persist-credentials : false
1919
20- - name : Setup Python (pip)
21- uses : actions/setup-python@v5
20+ - name : Setup python
21+ uses : actions/setup-python@v6
2222 with :
23- python-version : ' 3.10'
24- architecture : ' x64'
25- cache : ' pip'
26- cache-dependency-path : .github/workflows/main.yml
23+ python-version-file : " pyproject.toml"
2724
28- - name : Install poetry
29- run : |
30- python3 -m pip install --upgrade poetry==2.2.0
31-
32- - name : Setup Python (poetry)
33- uses : actions/setup-python@v5
34- with :
35- python-version : ' 3.10'
36- architecture : ' x64'
37- cache : ' poetry'
38-
39- - name : Install dependencies
40- run : |
41- poetry install
25+ - name : Install uv
26+ uses : astral-sh/setup-uv@v6
4227
4328 - run : |
44- poetry run mkdocs build
45- poetry run python news2rss.py -f site/news/index.html -o site/news.xml
29+ uv run mkdocs build
30+ uv run python news2rss.py -f site/news/index.html -o site/news.xml
4631
4732 - name : Upload for pages
48- uses : actions/upload-pages-artifact@v3
33+ uses : actions/upload-pages-artifact@v4
4934 with :
5035 path : ./site
5136
5237 deploy :
5338 environment :
5439 name : github-pages
5540 url : ${{ steps.deployment.outputs.page_url }}
56- runs-on : ubuntu-latest
41+ runs-on : ubuntu-24.04
5742 needs : build
5843 concurrency : ci-${{ github.ref }}
5944 permissions :
Original file line number Diff line number Diff line change 33/.vscode
44/.cache
55.lycheecache
6+ /.venv
7+ poetry.lock
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ For small changes:
3636
3737For larger changes:
3838
39- * ` poetry install `
40- * ` poetry run mkdocs serve `
39+ * ` uv run mkdocs serve `
4140* Access http://127.0.0.1:8000 - any changes to the sources should be
4241 immediately visible in your browser
4342* Open a PR with your changes or just push them if you have commit rights
You can’t perform that action at this time.
0 commit comments