Skip to content

Commit 9f0f827

Browse files
authored
Merge pull request #33 from Raekkeri/publish
Publish
2 parents ea431c4 + f1fdb0f commit 9f0f827

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
tags:
4+
- '*'
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-python@v3
12+
with:
13+
python-version: '3.9'
14+
- run: python --version
15+
- run: python -m pip install -U pip
16+
- run: python -m pip install -U build
17+
- run: python -m build
18+
- run: ls dist
19+
- run: python -m pip install -U twine
20+
- name: Publish package
21+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
22+
uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
user: __token__
25+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
setup(
1717
name='django-requestlogs',
1818
zip_safe=False,
19-
version='0.3.0',
19+
version='0.4.0',
2020
description='Audit logging for Django and Django Rest Framework',
2121
long_description=long_description,
2222
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)