Skip to content

Create Release

Create Release #8

Workflow file for this run

name: Create Release
on:
workflow_dispatch:
inputs:
tag-name:
description: 'Tag name'
required: false
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ tag-name }}

Check failure on line 23 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Create Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 23, Col: 19): Unrecognized named-value: 'tag-name'. Located at position 1 within expression: tag-name .github/workflows/release.yaml (Line: 24, Col: 23): Unrecognized named-value: 'tag-name'. Located at position 1 within expression: tag-name
release_name: ${{ tag-name }}
draft: false
prerelease: false
generate_release_notes: true
- name: Set outputs for the created release
run: |
echo "::set-output name=release_id::${{ steps.create_release.outputs.id }}"
echo "::set-output name=html_url::${{ steps.create_release.outputs.html_url }}"
echo "::set-output name=upload_url::${{ steps.create_release.outputs.upload_url }}"