Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
julianwachholz committed Sep 23, 2024
1 parent 3568e1c commit 727914c
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ name: Release
on:
push:
tags:
- '*'
- "*"

jobs:
pypi-publish:
runs-on: ubuntu-latest
if: github.repository == 'julianwachholz/django-autocompletefilter'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'julianwachholz/django-autocompletefilter'
environment:
name: pypi
url: https://pypi.org/p/django-autocompletefilter
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand All @@ -33,5 +34,10 @@ jobs:
twine check dist/*
- name: Upload packages
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]

- name: Create release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/*

0 comments on commit 727914c

Please sign in to comment.