Skip to content

Fix client set-state (#34) #13

Fix client set-state (#34)

Fix client set-state (#34) #13

Workflow file for this run

name: distribute
on:
workflow_dispatch:
push:
branches:
- main
paths:
- pyproject.toml
- setup.py
- setup.cfg
jobs:
distribute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: install
run: make ci-install
- name: configure git
run: |
git config --global user.email "$(git --no-pager show -s --format=%ae)" && \
git config --global user.name "$(git --no-pager show -s --format=%an)"
- name: tag version
run: venv/bin/daves-dev-tools git tag-version
- name: push tags
run: git push --tags || echo "Tag already exists"
- name: create release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "$(venv/bin/python setup.py --version)" || echo "Release already exists"
- name: distribute
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: make distribute