see below #347
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 to TestPyPI | |
on: push | |
jobs: | |
build-and-publish: | |
name: Build and publish distributions to TestPyPi | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@master | |
- name: Append build number to version | |
uses: ./.github/actions/append-buildnum | |
with: | |
package: sizebot | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install build dependencies | |
run: python -m pip install build --user | |
- name: Build distributions | |
run: python -m build --sdist --wheel --outdir dist/ . | |
- name: Publish distribution to Test PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: https://test.pypi.org/legacy/ |