Fix bug in action

This commit is contained in:
Hongbo Wu
2023-02-10 12:51:59 +08:00
parent 15d417410e
commit 22479cb8a6

View File

@ -3,7 +3,15 @@ name: Deploy static content to Pages
on:
push:
branches: ["main"]
branches:
- main
paths-ignore:
- 'apple/**'
pull_request:
branches:
- main
paths-ignore:
- 'apple/**'
workflow_dispatch:
@ -28,10 +36,10 @@ jobs:
go-version: 1.19
- name: Generate distiller output for readability
run: |
go get github.com/omnivore-app/go-domdistiller
for f in packages/readabilityjs/test/test-pages/*/source.html; do
go install github.com/omnivore-app/go-domdistiller@latest
for f in packages/readabilityjs/test/test-pages/*; do
echo "Processing $f file..."
go-domdistiller -input $f -output $f.distiller.html
go-domdistiller file -i $f/source.html -o $f/distiller.html
done
generate-static:
needs: generate-distiller-output