and the controls template #194
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-experiences" | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install build script dependencies | |
run: pip install tomli | |
- name: Make build dir | |
run: mkdir build | |
- name: Copy editorial configs to build dir | |
run: cp collections.toml folders.toml tags.toml build/ | |
- name: Clone remote experiences | |
run: python3 clone_remote_experiences.py | tee cloned_experiences | |
- name: Run build script on all experiences | |
run: python build_experiences.py $(cat cloned_experiences) | |
- name: Generate experience hashes | |
run: python generate_experience_hashes.py build/experiences/* | tee build/hashes.json | python3 -mjson.tool | |
- name: Upload experiences | |
uses: actions/upload-artifact@v3 | |
with: | |
name: experiences | |
path: build/ |