From 443d802d2d4d432ad598f3b53bb2acd558add853 Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Wed, 1 May 2024 12:47:32 +0300 Subject: [PATCH] Create draft-release.yml --- .github/workflows/draft-release.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/draft-release.yml diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml new file mode 100644 index 0000000..bb2547f --- /dev/null +++ b/.github/workflows/draft-release.yml @@ -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