feat(create-release.yml): add GitHub Actions workflow to create a release with version input and release notes generation

This commit is contained in:
ogabrielluiz 2024-05-28 18:38:50 -03:00
commit 6070bbb8fc

27
.github/workflows/create-release.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: "Version to release"
required: true
type: string
jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
prerelease: true
tag: v${{ inputs.version }}
commit: dev