-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 1.06 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Release
on: # yamllint disable-line rule:truthy
push:
branches:
- master
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Dependencies
run: |
pip install poetry
poetry install
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
- name: Get current version
id: get_version
run: echo version=$(poetry version -s) >> $GITHUB_OUTPUT
- uses: mukunku/[email protected]
id: version_exists_check
with:
tag: v${{steps.get_version.outputs.version}}
- name: Release
uses: softprops/action-gh-release@v1
if: steps.version_exists_check.outputs.exists != 'true'
with:
generate_release_notes: true
draft: true
name: ${{steps.get_version.outputs.version}}
tag_name: v${{steps.get_version.outputs.version}}