forked from rrthomas/hpmor
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.57 KB
/
kunmetu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "Kunmetu HPMOR-aj PDF-dosierojn kaj Bitlibrojn"
run-name: "Kunmetu HPMOR PDF-dosierojn kaj Bitlibrojn"
on:
push:
branches-ignore: [main]
concurrency:
group: ${{ github.workflow_ref }}
cancel-in-progress: false
jobs:
kunmetu:
name: "Kunmetu HPMOR-aj PDF-dosierojn kaj Bitlibrojn"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: touch requirements.txt
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: wget --quiet "${URL}" -O hpmor-prev.html
env:
URL: https://github.com/${{ github.repository }}/releases/tag/LaboroEnProgreso/hpmor.html
- run: sh scripts/install_requirements.sh
- run: sh scripts/make_pdfs.sh
- run: sh scripts/make_ebooks.sh
- run: |
diff -u hpmor-prev.html hpmor.html > hpmor-html-diff.log || :
rm hpmor-prev.html
- uses: actions/upload-artifact@v4
with:
name: bitlibrojn
retention-days: 14
path: |
./hpmor*.pdf
./hpmor.epub
./hpmor.mobi
./hpmor.fb2
./hpmor.html
- uses: softprops/action-gh-release@v2
with:
name: "Laboro en Progreso"
body: "Ĉi tiu eldono estas laboro en progreso."
target_commitish: ${{ github.sha }}
tag_name: LaboroEnProgreso
prerelease: true
files: |
./hpmor*.pdf
./hpmor.epub
./hpmor.mobi
./hpmor.fb2
./hpmor.html