-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add GitHub Actions workflow for creating releases (#4587)
* Add GitHub Actions workflow for creating releases * Remove POETRY_VERSION environment variable from create-release workflow
- Loading branch information
1 parent
c8ac7e6
commit 24f5638
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |