synapse-s3-storage-provider/.github/workflows/release.yml
David Robertson fa27fa1a92
Fix CI again (#90)
* Fix CI again

* Try invoking isort etc directly

* Don't bother nuking pyc files

* Remove usedevelop and commented-out 'find' invocation
2023-01-09 18:11:45 +00:00

26 lines
608 B
YAML

name: "Build and upload to PyPI"
on:
release:
types: ["published"]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.x"
- name: "Install packaging tools"
run: "python -m pip install --upgrade build twine"
- name: "Build dist package"
run: "python -m build"
- name: "Upload to PyPI"
run: "python -m twine upload dist/*"
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: "${{ secrets.PYPI_ACCESS_TOKEN }}"