Skip to content

chore: bump version to v0.15.0 #18

chore: bump version to v0.15.0

chore: bump version to v0.15.0 #18

Workflow file for this run

---
name: Release
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: Generate a changelog
uses: orhun/git-cliff-action@v3
id: git-cliff
with:
config: cliff.toml
args: -vv --latest --strip header
env:
OUTPUT: CHANGES.md
- 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
body: ${{ steps.git-cliff.outputs.content }}
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/zjstatus.wasm
asset_name: zjstatus.wasm
asset_content_type: application/octet-stream