Skip to content

New release

New release #7

Workflow file for this run

name: 'New release'
on:
workflow_dispatch:
inputs:
version:
description: 'Version for new release.'
type: string
required: true
permissions:
contents: write
jobs:
release:
name: 'Draft new release (latest: ${{inputs.version}})'
runs-on: ubuntu-latest
steps:
- name: 'Setup Repository (${{github.event.repository.name}})'
uses: actions/checkout@v4
- name: 'Get latest Tag'
run: echo "LATEST_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: 'Create new release (current: ${{env.LATEST_TAG}}, new: ${{inputs.version}})'
uses: ncipollo/release-action@v1
with:
allowUpdates: false
makeLatest: true
tag: ${{inputs.version}}