Add Scala Days 2025 call for proposal #2237
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: scala-lang docs | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 0 * * *' | |
jobs: | |
build-and-validate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.6' | |
bundler-cache: true | |
- name: Build documents | |
run: | | |
bundle exec jekyll build 2> error.log | |
cat >&2 error.log | |
( ! grep -qie Error -e Warn error.log ) | |
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) | |
find ./_site \( -type d \( -name events -o -name training \) -prune -false \) -o \( -type f ! -name error.log -empty \) | ( ! read ) | |
- name: Proofing (local links only) | |
if: github.event_name == 'pull_request' | |
run: | | |
bundle exec htmlproofer ./_site/ --no-enforce-https --disable-external --only-4xx --ignore-empty-alt --allow-hash-href | |
- name: Proofing (all links) | |
if: github.event_name != 'pull_request' | |
run: | | |
bundle exec htmlproofer ./_site/ --no-enforce-https --only-4xx --ignore-status-codes "400,401,403,429" --ignore-empty-alt --allow-hash-href --ignore-urls "/https://github.com/scala/,/trends.google.com/,/pgp.mit.edu/,/www.oracle.com/,/scalafiddle.io/" --typhoeus='{"headers":{"Accept-Encoding":"gzip, deflate", "Accept":"application/xml,application/xhtml+xml,text/html;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5", "User-Agent":"Mozilla/5.0 (compatible; HTML Proofer/#{HTMLProofer::VERSION}; +https://github.com/gjtorikian/html-proofer)"}, "followlocation":"true", "connecttimeout":"10", "timeout":"30"}' |