Merge pull request #777 from dayanruben/kotlin-conf-2024 #406
This file contains 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: Build Jekyll Pages | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: bom-check | |
uses: arma-actions/[email protected] | |
with: | |
path: _conferences | |
- name: Validate conference data file names | |
run: ls -1 _conferences/ | grep -v '\.md$' && echo "Found above file names not ending in '.md'. Please correct." && exit 1 || true | |
- name: Prepare for conference data file validation | |
run: | | |
mkdir _tmp | |
# Copy conference data files and rename to .yml because pykwalify is picky | |
for file in _conferences/*.md; do | |
name=${file#"_conferences/"} | |
name=${name%".md"} | |
cp -- "$file" "_tmp/${name}.yml" | |
done | |
# Strip everything but the YAML front matter block | |
sed -ni '/---/{:a;n;/---/b;p;ba}' _tmp/*.yml | |
- name: Validate conference data files | |
uses: cketti/[email protected] | |
with: | |
files: _tmp/*.yml | |
schema: conference_schema.yml | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
bundler-cache: true | |
- name: Build with jekyll | |
run: bundle exec jekyll build |