Skip to content

Commit

Permalink
github action to publish distribution on tagged commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Mar 10, 2021
1 parent 86fd769 commit ee42b21
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: github-actions
on: [push]
jobs:
publish-to-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = papermerge-core
version = 2.0.0rc45
version = 2.0.0rc46
description = Open source document management system designed for scanned documents
long_description = file: README.rst
url = https://www.papermerge.com/
Expand Down

0 comments on commit ee42b21

Please sign in to comment.