From 5ea7612687d04c8bc8480c34411bf11fbd5e7cc5 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 26 Jan 2021 08:12:33 -0500 Subject: [PATCH] Add publishing workflow --- .github/workflows/publishing.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publishing.yml diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml new file mode 100644 index 00000000..d9d33578 --- /dev/null +++ b/.github/workflows/publishing.yml @@ -0,0 +1,23 @@ +name: Tests and linters + +on: + push: + tags: + - * + +jobs: + + publish-source: + name: Publish source tarball + runs-on: ubuntu-latest + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + - run: python setup.py sdist + - run: pip install twine + - run: twine upload dist/*