Deploy examples again (#2655)

* actually build examples, not just echo

* write into the correct file

* be more sensitive to ci changes
This commit is contained in:
WorldSEnder 2022-05-04 10:44:08 +02:00 committed by GitHub
parent 31594245ef
commit 6373f98cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ on:
branches: [master] branches: [master]
paths: paths:
- .github/workflows/size-cmp.yml - .github/workflows/size-cmp.yml
- ci/collect_sizes.py - "ci/**"
- "packages/**" - "packages/**"
- "examples/**" - "examples/**"
- "Cargo.toml" - "Cargo.toml"

View File

@ -23,6 +23,6 @@ for path in examples/*; do
cd "$path" cd "$path"
dist_dir="$output/$example" dist_dir="$output/$example"
echo trunk build --release --dist "$dist_dir" --public-url "$PUBLIC_URL_PREFIX$example" trunk build --release --dist "$dist_dir" --public-url "$PUBLIC_URL_PREFIX$example"
) )
done done

View File

@ -2,7 +2,7 @@
# yew $ ./ci/write-optimisation-flags.sh # yew $ ./ci/write-optimisation-flags.sh
# this goes in [unstable] section # this goes in [unstable] section
cat >> .cargo/config << EOF cat >> .cargo/config.toml << EOF
build-std = ["std", "panic_abort"] build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"] build-std-features = ["panic_immediate_abort"]
EOF EOF