Skip to content

Commit c34a1de

Browse files
authored
Update release notes and add publish workflow (#8)
Update release notes and add publish workflow
1 parent d98c594 commit c34a1de

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: publish
2+
3+
on: push
4+
5+
jobs:
6+
publish:
7+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
8+
runs-on: ubuntu-latest
9+
strategy:
10+
max-parallel: 1
11+
matrix:
12+
python-version: [3.7]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
# Use no caching to be 100% confident things are working properly
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Check that formatting, linting, and tests pass
26+
run: |
27+
make ci
28+
- name: Check docs are up to date
29+
run: |
30+
make docs-build-ci
31+
- name: Install poetry
32+
run: |
33+
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
34+
- name: Build distribution
35+
run: |
36+
poetry build
37+
# poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
38+
- name: Publish distribution to Test PyPI
39+
uses: pypa/gh-action-pypi-publish@master
40+
with:
41+
password: ${{ secrets.TEST_PYPI_PASSWORD }}
42+
repository_url: https://test.pypi.org/legacy/
43+

docs/release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Latest changes
22

3+
## 0.1.1
4+
5+
* Add source docstrings for most functions.
36

47
## 0.1.0
58

fastapi_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.1.1"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fastapi-utils"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Reusable utilities for FastAPI"
55
license = "MIT"
66
authors = ["David Montague <[email protected]>"]

0 commit comments

Comments
 (0)