Skip to content

fix(repo): various bugs and performance improvements #1

fix(repo): various bugs and performance improvements

fix(repo): various bugs and performance improvements #1

Workflow file for this run

---
name: Release
permissions: write-all
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
build-release:
name: build-release
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: '1.76.0'
profile: minimal
override: true
target: wasm32-wasi
- name: Build release binary
run: cargo build --release
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event_name == 'workflow_dispatch' && '' || github.ref }}
release_name: Release ${{ github.event_name == 'workflow_dispatch' && 'main' || github.ref }}
draft: true
prerelease: false
- name: Upload wasm file to release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/wasm32-wasi/release/monocle.wasm
asset_name: layout-manager.wasm
asset_content_type: application/octet-stream