Skip to content

feat(pipelines): add executePublish parameter to publish pipelines (#… #40

feat(pipelines): add executePublish parameter to publish pipelines (#…

feat(pipelines): add executePublish parameter to publish pipelines (#… #40

# 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-slim
steps:
- name: Checkout
uses: actions/checkout@v6.0.3
- name: Install Rust
uses: dtolnay/rust-toolchain@v1
- 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 }}"