-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (36 loc) · 999 Bytes
/
release.yaml
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
39
40
41
42
43
name: Release
on:
push:
tags:
- "*"
jobs:
pypi-publish:
runs-on: ubuntu-latest
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
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U build setuptools twine wheel
- name: Build package
run: |
python -m build
twine check dist/*
- name: Upload packages
uses: pypa/[email protected]
- name: Create release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/*