diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 9ded17ecd..5d2b37d6c 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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