Merge pull request #20 from probe-rs/dependabot/cargo/minor-309123e1da #13
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
name: deploy | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '**.png' | |
- '**cd.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
override: true | |
- uses: jetli/[email protected] | |
with: | |
# Optional version of trunk to install(eg. 'v0.8.1', 'latest') | |
version: 'latest' | |
- name: Build | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
trunk build --release | |
- name: Copy CNAME | |
run: | | |
cp CNAME dist/CNAME | |
- name: Deploy demo | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: dist | |
clean: true |