Skip to content

Release

Release #3

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
jobs:
release:
name: 'Release new version'
runs-on: ubuntu-latest
env:
VERSION: ${{ inputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'latest'
- name: 'Create the release tag'
run: |
git tag -f $VERSION
git push origin $VERSION --force
- name: 'Create the release'
uses: elgohr/Github-Release-Action@v5
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: {{ env.VERSION }}

Check failure on line 33 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 33, Col: 20): A mapping was not expected
tag: ${{ env.VERSION }}