Skip to content

Add the release workflow #1

Add the release workflow

Add the release workflow #1

Workflow file for this run

name: Release

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: env
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
jobs:
env:
VERSION: ${{ inputs.version }}
build:
name: 'Release new version'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
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 }}
tag: ${{ env.VERSION }}