Skip to content

Fixed python imports and python3 changes (#6) #23

Fixed python imports and python3 changes (#6)

Fixed python imports and python3 changes (#6) #23

name: Upload Python Package git maildiff
on:
push:
branches:
- main
permissions:
contents: read
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && github.ref == 'refs/tags/*'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}