Skip to content

Commit

Permalink
feat: Add auto release action
Browse files Browse the repository at this point in the history
  • Loading branch information
arseniiarsenii committed Dec 23, 2022
1 parent 5b3571d commit 0853a38
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/add-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Auto Release

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: get version
id: get_version
shell: bash
run: |
echo "::set-output name=name::$(poetry version)"
echo "::set-output name=version::$(poetry version | cut -d " " -f 2)"
- name: Upload assets to release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.get_version.outputs.name }}
tag_name: ${{ steps.get_version.outputs.version }}

0 comments on commit 0853a38

Please sign in to comment.