add contributing.md #25
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 a Python distribution to PyPI | |
on: | |
push: | |
branches: [master] | |
# jobs: | |
# deploy: | |
# container: | |
# image: python:slim | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: install make | |
# run: apt update && apt install -y make twine | |
# - name: Build and publish | |
# env: | |
# TWINE_USERNAME: __token__ | |
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
# run: make prepare && make build && twine upload dist/* | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build and publish | |
uses: docker://python:slim | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
args: bash ./scripts/deploy.sh |