From 757eec8badd95508290b238f89eaeff030f0719d Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 31 Mar 2022 10:25:00 +0200 Subject: [PATCH] Improve release workflow --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 652a41b9..12635958 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,8 @@ name: Upload Python Package on: push: - tags: "*" + tags: + - "*" jobs: deploy: @@ -25,7 +26,6 @@ jobs: python -m pip install --upgrade pip python -m pip install --upgrade twine python -m pip install -r requirements.txt - python -m pip install -r requirements/development.txt - name: Build and publish env: @@ -34,3 +34,10 @@ jobs: run: | python setup.py sdist bdist_wheel twine upload dist/* + + - name: Transform git tag into GitHub Release with assets + uses: marvinpinto/action-automatic-releases@v1.2.1 + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: dist/*