Bump version: 0.2.0 → 0.3.0 #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Show ref | |
run: | | |
echo "$GITHUB_REF" | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
sudo rm -f /etc/boto.cfg | |
sudo apt-get -qq -y update | |
sudo apt-get install -qq -y libicu-dev | |
pip install --upgrade pip setuptools | |
pip install wheel | |
pip install -e "." | |
- name: Build a distribution | |
run: | | |
python setup.py sdist bdist_wheel | |
- name: Publish a Python distribution to PyPI | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |