Skip to content

Commit

Permalink
Create draft-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 1, 2024
1 parent 88fa998 commit 443d802
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Draft Release

on:
workflow_dispatch:

jobs:
build:
name: Draft Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "poetry"
cache-dependency-path: poetry.lock

- name: Build project
run: |
poetry build
echo "version=$(poetry version --short)" >> "$GITHUB_ENV"
- name: Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
tag_name: ${{ env.version }}
draft: true

0 comments on commit 443d802

Please sign in to comment.