Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/RELEASE-TEMPLATE.md

This file was deleted.

25 changes: 21 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Publish package to PyPI
name: Publish package to PyPI and create release

on:
release:
types:
- published
push:
branches: [master, kiota/long-term-branch]
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
Expand All @@ -12,6 +13,7 @@ jobs:
publish:
name: Publish distribution to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
environment: pypi_prod
needs: [build]
steps:
Expand All @@ -33,4 +35,19 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

release:
name: Create release
runs-on: ubuntu-latest
needs: [publish]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create --notes '${{ steps.extract-release-notes.outputs.release_notes }}' --title ${{ github.ref_name }} ${{ github.ref_name }}


32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pylint==3.0.3

pyproject-hooks==1.0.0 ; python_version >= '3.7'

pytest==7.4.3
pytest==7.4.4

pytest-cov==4.1.0

Expand Down