Skip to content

[Issue #351] ci: Defined version rc1 for testing of the new pypiGener… #1

[Issue #351] ci: Defined version rc1 for testing of the new pypiGener…

[Issue #351] ci: Defined version rc1 for testing of the new pypiGener… #1

name: Build and Release PyPI Package
on:
push:
# Run this workflow when a new git tag is pushed
tags:
- '*'
jobs:
build_and_release:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Install twine
run: pip install twine
- name: Check distribution
run: twine check dist/*
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*