Skip to content

Commit 538a057

Browse files
committed
Added workflow for release
1 parent ff7d3e6 commit 538a057

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python 3.11
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Build the distribution
20+
run: |
21+
pip install -r requirements.txt
22+
python -m pip install --upgrade build
23+
python -m build
24+
25+
- name: Publish distribution to PyPI
26+
uses: pypa/gh-action-pypi-publish@release/v1
27+
with:
28+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Django Simple Components is a small package to easily create components inside y
44

55
## Quick start
66

7+
0. Install package from pypi:
8+
```bash
9+
pip install django-simple-components
10+
```
11+
712
1. Add `simple_components` to your INSTALLED_APPS setting like this:
813
```python
914
INSTALLED_APPS = [

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
"Framework :: Django :: 4.1",
1919
"Framework :: Django :: 4.2",
2020
"Intended Audience :: Developers",
21-
"License :: OSI Approved :: MIT",
21+
"License :: OSI Approved :: MIT License",
2222
"Programming Language :: Python",
2323
"Programming Language :: Python :: 3",
2424
"Programming Language :: Python :: 3 :: Only",

0 commit comments

Comments
 (0)