Fix bug in action
This commit is contained in:
16
.github/workflows/static.yml
vendored
16
.github/workflows/static.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user