Draft Release #1
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
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 |