Skip to content

Commit d19a643

Browse files
committed
Update github action
1 parent ba3f86f commit d19a643

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/setup-python@v4
1313
with:
1414
python-version: '3.14'
15-
- name: Test
15+
- name: Main
1616
run: |
1717
python -m pip install --editable .
1818
python -c "import pxsol"

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.14'
17+
- name: Main
18+
run: |
19+
python -m pip install mkdocs
20+
python -m pip install mkdocs-to-pdf
21+
sudo apt install -y fonts-noto-cjk
22+
sudo apt install -y fonts-noto-cjk-extra
23+
cd ${{ github.workspace }}/doc/en/mkdocs-to-pdf
24+
python main.py
25+
cd ${{ github.workspace }}/doc/zh/mkdocs-to-pdf
26+
python main.py
27+
- name: Push
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
files: |
31+
doc/en/mkdocs-to-pdf/site/pdf/pxsol-en.pdf
32+
doc/zh/mkdocs-to-pdf/site/pdf/pxsol-zh.pdf

0 commit comments

Comments
 (0)