Skip to content

Commit ee42b21

Browse files
committed
github action to publish distribution on tagged commit
1 parent 86fd769 commit ee42b21

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: github-actions
2+
on: [push]
3+
jobs:
4+
publish-to-pypi:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Set up Python 3.7
9+
uses: actions/setup-python@v2
10+
with:
11+
python-version: 3.7
12+
- name: Install pypa/build
13+
run: >-
14+
python -m
15+
pip install
16+
build
17+
--user
18+
- name: Build a binary wheel and a source tarball
19+
run: >-
20+
python -m
21+
build
22+
--sdist
23+
--wheel
24+
--outdir dist/
25+
.
26+
- name: Publish distribution 📦 to PyPI
27+
if: startsWith(github.ref, 'refs/tags')
28+
uses: pypa/gh-action-pypi-publish@master
29+
with:
30+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = papermerge-core
3-
version = 2.0.0rc45
3+
version = 2.0.0rc46
44
description = Open source document management system designed for scanned documents
55
long_description = file: README.rst
66
url = https://www.papermerge.com/

0 commit comments

Comments
 (0)