Skip to content

Commit

Permalink
ci(website): write a script that works on both bash and zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jan 24, 2022
1 parent 866371d commit 351d280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
# https://github.com/Kotlin/dokka/issues/2322
# https://github.com/Kotlin/dokka/issues/2323
# Once everything gets fixed, lychee could simply run on '/lychee/**/*.html'
FILES="$(find build/website/ -name '*.html' | grep -v /kdoc/ | grep -v /javadoc/ | sed -e s#^build##)"
docker run --rm -v "$(pwd)/build/website:/website" -e GITHUB_TOKEN lycheeverse/lychee $FILES --exclude-file /website/lycheeignore -m 100 --threads 1
FILES="$(find build/website/ -name '*.html' | grep -v /kdoc/ | grep -v /javadoc/ | sed -e 's#^build##')"
docker run --rm -v "$(pwd)/build/website:/website" -e GITHUB_TOKEN lycheeverse/lychee $(echo "$FILES") --exclude-file /website/lycheeignore -m 100 --threads 1
fi
clean-command: |
./gradlew clean --parallel
Expand Down

0 comments on commit 351d280

Please sign in to comment.