Skip to content

Commit

Permalink
remove testpypi for now
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Feb 13, 2021
1 parent 6ae7f6d commit 28c23e0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,10 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Force version on Test PyPI
if: ${{ !startsWith(github.ref, 'refs/tags') }}
run: |
version=$(python setup.py --version | awk -F+ '{print $1}' | tail -1)
echo SETUPTOOLS_SCM_PRETEND_VERSION=$version >> $GITHUB_ENV
echo version $version
- name: Build
run: |
python -m pip install --user build
python -m build --sdist --wheel --outdir dist/
- uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["dist/*"]'
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish to PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 28c23e0

Please sign in to comment.