Skip to content

Commit

Permalink
ci: Add GitHub Actions workflow for creating releases (#4587)
Browse files Browse the repository at this point in the history
* Add GitHub Actions workflow for creating releases

* Remove POETRY_VERSION environment variable from create-release workflow
  • Loading branch information
ogabrielluiz authored Nov 14, 2024
1 parent c8ac7e6 commit 24f5638
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: "Version to release"
required: true
type: string
ref:
description: "Commit to tag the release"
required: true
type: string
pre_release:
description: "Pre-release tag"
required: true
type: boolean

jobs:
create_release:
name: Create Release Job
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: dist-main
path: dist
- name: Create Release Notes
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
prerelease: ${{ inputs.pre_release }}
tag: v${{ inputs.version }}
commit: ${{ inputs.ref }}

0 comments on commit 24f5638

Please sign in to comment.