Skip to content

Commit

Permalink
build(github): add semantic release
Browse files Browse the repository at this point in the history
Add Github action that automatically releases to pypi and github based on commit messages
  • Loading branch information
taylor-cedar committed Jul 15, 2021
1 parent 81ee1b7 commit e20a616
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Semantic Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
concurrency: release

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Python Semantic Release
uses: cedar-team/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__pycache__
__pycache__
dist
django_bulk_load.egg-info
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@
python_requires=">=3.6",
install_requires=[
"django>=2.2",
"psycopg2-binary>=2.8.6"
],
extras_require={
'test': [
"psycopg2-binary==2.8.6"
]
'test': []
},
)

0 comments on commit e20a616

Please sign in to comment.