Skip to content

Add a deployment on top of the build #6

Add a deployment on top of the build

Add a deployment on top of the build #6

Workflow file for this run

name: Build and Deploy with Trunk
on: [push]
jobs:
build:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- uses: jetli/[email protected]
- uses: jetli/[email protected]
- run: trunk build --release
- uses: actions/upload-pages-artifact@v2
with:
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v2
id: deployment