Create Release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version number (e.g., v1.0.0)' | |
required: true | |
default: 'v1.0.0' | |
permissions: | |
contents: write | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Use Provided Version or Default Version | |
id: use_version | |
run: | | |
VERSION="${{ github.event.inputs.version }}" | |
echo "Using version: $VERSION" | |
echo "version=$VERSION" >> $GITHUB_ENV | |
- name: Create GitHub Release | |
id: create_release | |
uses: actions/create-release@v1 | |
with: | |
tag_name: ${{ env.version }} | |
release_name: ${{ env.version }} | |
body: | | |
## Changes in this release | |
- Auto-generated release for version ${{ env.version }}. | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |