diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml new file mode 100644 index 0000000..b51879a --- /dev/null +++ b/.github/workflows/python-publish.yaml @@ -0,0 +1,36 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Release Python Package + +on: + release: + types: [published] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/Dockerfile b/Dockerfile index ea9f848..9e05a68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ RUN apt-get update && \ git \ python3 \ python3-pip \ + python3.8-venv \ vim \ && apt-get clean diff --git a/README.md b/README.md index a830111..cedfd61 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/andrust/git-gerrit/Static-analysis?label=Static-analysis%20status) +![PyPI](https://img.shields.io/pypi/v/gerrit-tui) # git-gerrit Console UI for Gerrit CodeReview. diff --git a/setup.cfg b/setup.cfg index 35ea3e1..8f240c6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,9 +1,10 @@ [metadata] name = gerrit-tui -version = 0.0.1 +version = 0.1.0 license_file = LICENSE description = Console UI for Gerrit CodeReview long_description = file:README.md +long_description_content_type = text/markdown url = https://github.com/andrust/git-gerrit [options]