Skip to content

deploy-test-pypi

deploy-test-pypi #3061

name: deploy-test-pypi
on:
pull_request:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
deploy-test-pypi:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: ci/install_dependencies.sh
- name: Deploy
run: |
rm -rf dist/*
git tag $(date +'v%Y.%m.%d.%H.%M.%S')
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ -u zasdfgbnm-bot -p ${{secrets.zasdfgbnm_bot_test_pypi_password}} dist/*