Scrape examples for docs and quicken the CI #1
Workflow file for this run
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Deploy to Firebase Hosting on PR | |
'on': pull_request | |
jobs: | |
build_and_preview: | |
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- run: cargo doc --no-deps --examples -Z rustdoc-scrape-examples | |
- name: Copy plots directories | |
run: | | |
for example_dir in examples/*; do | |
if [ -d "$example_dir/plots" ]; then | |
example_name=$(basename $example_dir) | |
mkdir -p target/doc/$example_name/plots | |
cp -r $example_dir/plots/* target/doc/$example_name/plots/ | |
fi | |
done | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NYX_SPACE }}' | |
projectId: nyx-space |