mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
926 B
YAML
43 lines
926 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
|
|
|
|
- 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
|