Skip to content

Merge pull request #11 from sacconazzo:develop #8

Merge pull request #11 from sacconazzo:develop

Merge pull request #11 from sacconazzo:develop #8

Workflow file for this run

name: Check New Release
on:
push:
tags:
- "v[0-9]*"
permissions:
contents: write
jobs:
release:
name: Release on pushed Tag
runs-on: ubuntu-22.04
steps:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release list --repo="$GITHUB_REPOSITORY" \
| grep -q "$tag" && echo "Release $tag already exists" \
|| gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="$Release ${tag}" \
--generate-notes