mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* modernize github workflows this mainly fixes some inconsistencies in style, outdated or wrong comments and action version - replace Legit-Labs/action-download-artifact with actions/download-artifact - fix Swatinem/rust-cache arguments - fix benchmark transformations - expand feature soundness lints - wording and capitalization in comments * fix no_run on crate level doc * fix some more small issues
45 lines
979 B
YAML
45 lines
979 B
YAML
name: Publish Examples
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'ci/**'
|
|
- 'examples/**'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
# leave empty for /
|
|
PUBLIC_URL_PREFIX: ""
|
|
RUSTUP_TOOLCHAIN: nightly
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup toolchain
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: nightly
|
|
targets: wasm32-unknown-unknown
|
|
components: rust-src
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
shared-key: publish-examples
|
|
|
|
- uses: jetli/trunk-action@v0.4.0
|
|
with:
|
|
version: 'latest'
|
|
|
|
- name: Build examples
|
|
run: ./ci/build-examples.sh
|
|
|
|
- name: Deploy to Firebase
|
|
uses: siku2/action-hosting-deploy@v1
|
|
with:
|
|
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
|
firebaseToken: "${{ secrets.FIREBASE_TOKEN }}"
|
|
channelId: live
|
|
targets: examples
|