Skip to content

Merge pull request #355 from nyx-space/dependabot/cargo/polars-0.42.0 #7

Merge pull request #355 from nyx-space/dependabot/cargo/polars-0.42.0

Merge pull request #355 from nyx-space/dependabot/cargo/polars-0.42.0 #7

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- master
jobs:
build_and_deploy:
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: |
declare -A example_map
example_map["01_orbit_prop"]="01_orbit_prop"
example_map["02_jwst"]="02_jwst_covar_monte_carlo"
declare -A special_cases
special_cases["03_geo_analysis"]="03_geo_raise 03_geo_drift 03_geo_sk"
for example_dir in examples/*; do
example_name=$(basename $example_dir)
if [ -d "$example_dir/plots" ]; then
if [ -n "${example_map[$example_name]}" ]; then
doc_name=${example_map[$example_name]}
mkdir -p target/doc/$doc_name/plots
cp -r $example_dir/plots/* target/doc/$doc_name/plots/
elif [ -n "${special_cases[$example_name]}" ]; then
for target_folder in ${special_cases[$example_name]}; do
mkdir -p target/doc/$target_folder/plots
cp -r $example_dir/plots/* target/doc/$target_folder/plots/
done
else
echo "No mapping found for $example_name"
fi
fi
done
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NYX_SPACE }}'
channelId: live
projectId: nyx-space