Skip to content

Create release

Create release #1

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
# run: if [ $(grep ${{ github.event.inputs.version }} .version -c) != 1 ]; then exit 1; fi
- name: Check Changelog
run: if [ $(grep ${{ github.event.inputs.version }} CHANGELOG.md -c) != 1 ]; then exit 1; fi
- run: git archive --output=tpay-magento2-graphql.zip HEAD
- name: Create Github release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.inputs.version }}
name: "v${{ github.event.inputs.version }}"
generateReleaseNotes: true
artifacts: tpay-magento2-graphql.zip