0.1.2 #7
Workflow file for this run
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: Publish git-db | |
on: | |
workflow_dispatch: | |
release: | |
types: [ published ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Ubuntu related dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv | |
- name: Install and Publish PyPi packages | |
env: | |
TWINE_USERNAME: '${{ secrets.TWINE_USERNAME }}' | |
TWINE_PASSWORD: '${{ secrets.TWINE_PASSWORD }}' | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
make install | |
pip install wheel twine | |
python -m build; \ | |
twine check dist/*; \ | |
twine upload dist/* --verbose |