Skip to content

Kunmetu HPMOR-ajn PDF-dosierojn kaj Bitlibrojn #1090

Kunmetu HPMOR-ajn PDF-dosierojn kaj Bitlibrojn

Kunmetu HPMOR-ajn PDF-dosierojn kaj Bitlibrojn #1090

Workflow file for this run

name: "Kunmetu HPMOR-ajn PDF-dosierojn kaj Bitlibrojn"
run-name: "Kunmetu HPMOR-ajn PDF-dosierojn kaj Bitlibrojn"
on:
push:
branches-ignore: [main]
concurrency:
group: ${{ github.workflow_ref }}
cancel-in-progress: true
jobs:
kunmetu:
name: "Kunmetu HPMOR-ajn 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/download/LaboroEnProgreso/hpmor.html
# https://github.com/abbbi/github-actions-tune/blob/master/speedup.sh
- run: sudo sed -i 's/yes/no/g' '/etc/initramfs-tools/update-initramfs.conf'
- run: sudo rm -f /var/lib/man-db/auto-update
- run: sudo sed '/fontconfig/d' -i '/var/lib/dpkg/triggers/File'
- run: sudo sed '/install-info/d' -i '/var/lib/dpkg/triggers/File'
- run: sudo sed '/mime/d' -i '/var/lib/dpkg/triggers/File'
- run: sudo sed '/hicolor-icon-theme/d' -i '/var/lib/dpkg/triggers/File'
- run: echo "force-unsafe-io" | sudo tee -a /etc/dpkg/dpkg.cfg.d/force-unsafe-io
- run: echo -e '#!/bin/sh\nexec eatmydata /usr/bin/dpkg $@' | sudo tee /usr/local/bin/dpkg && sudo chmod +x /usr/local/bin/dpkg
- run: echo -e '#!/bin/sh\nexec eatmydata /usr/bin/apt $@' | sudo tee /usr/local/bin/apt && sudo chmod +x /usr/local/bin/apt
- run: echo -e '#!/bin/sh\nexec eatmydata /usr/bin/apt-get $@' | sudo tee /usr/local/bin/apt-get && sudo chmod +x /usr/local/bin/apt-get
- run: sh scripts/install_requirements.sh
- run: sh scripts/make_pdfs.sh
- run: sh scripts/make_ebooks.sh
- run: diff -u -s hpmor-prev.html hpmor.html | tee hpmor-html-diff.log
- run: rm hpmor-prev.html
- id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: bitlibrojn
retention-days: 14
path: |
./hpmor-html-diff.log
./hpmor*.pdf
./hpmor.epub
./hpmor.mobi
./hpmor.fb2
./hpmor.html
- run: echo "ARTIFACT_URL=${ARTIFACT_URL}" | tee -a "$GITHUB_ENV"
env:
ARTIFACT_URL: ${{ steps.upload-artifact.outputs.artifact-url }}
- run: |
tee -a "${GITHUB_STEP_SUMMARY}" << EOF
Artifact uploaded as ${ARTIFACT_URL}
EOF
- if: github.ref_name == 'esperantigo/unua-provo'
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-html-diff.log
./hpmor*.pdf
./hpmor.epub
./hpmor.mobi
./hpmor.fb2
./hpmor.html