Skip to content

Commit

Permalink
make Action: add diff to previous hpmor.html
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Nov 17, 2024
1 parent e1cf2b8 commit 2e14b17
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,37 @@ jobs:
ebook-convert --version
python3 --version
- name: Download previous hpmor.html
run: |
wget --quiet https://github.com/rrthomas/hpmor/releases/tag/WorkInProgress/hpmor.html -O hpmor-prev.html
- name: Make PDFs
run: sh scripts/make_pdfs.sh > /dev/null

- name: Make eBooks
run: sh scripts/make_ebooks.sh

- name: Compare to previous hpmor.html
run: |
diff -u hpmor-prev.html hpmor.html > hpmor-html-diff.log || :
rm hpmor-prev.html
- name: Test ls after
run: |
pwd
ls -al
- name: Upload eBooks as artifact
uses: actions/upload-artifact@v4
with:
name: ebooks
path: |
./hpmor.pdf
./hpmor.html
./hpmor-html-diff.log
./hpmor.epub
retention-days: 14

- name: Upload files to release WorkInProgress
uses: softprops/action-gh-release@v2
with:
Expand All @@ -86,3 +106,5 @@ jobs:
./hpmor.epub
./hpmor.mobi
./hpmor.fb2
./hpmor.html
./hpmor-html-diff.log

0 comments on commit 2e14b17

Please sign in to comment.