Skip to content

chore: bump version to v0.18.1 #26

chore: bump version to v0.18.1

chore: bump version to v0.18.1 #26

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@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
fetch-tags: false # https://github.com/actions/checkout/issues/1467
- run: git fetch --all --force
name: Fetch tags manually as a workaround. See https://github.com/actions/checkout/issues/1467
- name: Install Rust
uses: dtolnay/rust-toolchain@d388a4836fcdbde0e50e395dc79a2670ccdef13f # stable
with:
profile: minimal
override: true
toolchain: '1.81.0'
target: wasm32-wasip1
- name: Build release binary
run: cargo build --release
- name: Generate a changelog
uses: orhun/git-cliff-action@5594a53dc7c8647d85bd3d4da4ca78d3aa3dca4c # 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@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # 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/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/wasm32-wasip1/release/zjstatus.wasm
asset_name: zjstatus.wasm
asset_content_type: application/octet-stream