Skip to content

chore(anyspawn): release new version of anyspawn (#344) #21

chore(anyspawn): release new version of anyspawn (#344)

chore(anyspawn): release new version of anyspawn (#344) #21

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Creates a GitHub release for a crate when a version tag (e.g. "bytesbuf-v1.2.3")
# is pushed. Extracts the relevant changelog section and publishes the release via
# `scripts/publish-gh-release.rs`. This workflow is triggered automatically by tag
# pushes and is not intended to be run manually.
name: Publish GitHub Release
permissions:
contents: write
on:
push:
tags:
- '*-v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
inputs:
tag:
description: 'The tag to create a release for (e.g. "oxidizer-v1.2.3")'
required: true
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: cargo +nightly -Zscript scripts/publish-gh-release.rs --repo "${{ github.repository }}" "${{ inputs.tag || github.ref_name }}"