Skip to content

Official 0.3.0 release. #3

Official 0.3.0 release.

Official 0.3.0 release. #3

Workflow file for this run

name: Publish Python Package
on:
push:
branches:
- master
paths:
- 'testmailhelper/**'
- 'README.md'
- 'setup.py'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel # Ensure setuptools and wheel are installed
pip install twine
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*