Skip to content

Commit

Permalink
Relase v0.2.0-rc.1
Browse files Browse the repository at this point in the history
And add some magic to automatically create releases
  • Loading branch information
chrboe committed Nov 16, 2021
1 parent dc9ab88 commit 81efedd
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build package and publish to PyPi

on:
push:
tags:
- 'v*'

jobs:
build-and-publish:
name: Build and publish python distribution
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- 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: Create Release
if: startsWith(github.ref, 'refs/tags/v')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
dist/
*.egg-info/
.idea/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name="dnfjson",
version="0.1.0",
version="0.2.0-rc.1",
author="Christoph Böhmwalder",
author_email="[email protected]",
description="A libdnf wrapper which produces machine readable output",
Expand Down

0 comments on commit 81efedd

Please sign in to comment.