Skip to content

Create release

Create release #2

name: Create release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to create'
required: true
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Check version in tpay.php
run: if [ $(grep ${{ github.event.inputs.version }} tpay.php -c) != 2 ]; then exit 1; fi
- name: Check Changelog
run: if [ $(grep ${{ github.event.inputs.version }} CHANGELOG.md -c) != 1 ]; then exit 1; fi
- name: Create Github release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.inputs.version }}
name: "v${{ github.event.inputs.version }}"
generateReleaseNotes: true