Skip to content

Commit

Permalink
Upload to test PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
Socrats committed Nov 4, 2021
1 parent fae7a41 commit 844a5ee
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/upload_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish to Pypi
on:
workflow_dispatch:
inputs:
version:
description: 'Version upload to pypi'
required: true
pypi_repo:
description: 'Repo to upload to (testpypi or pypi)'
default: 'testpypi'
required: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install -U wheelhouse_uploader pyyaml
- name: Downloading wheels and sdist from staging
uses: robinraju/release-downloader@v1.2
with:
repository: "Socrats/EGTtools"
latest: true
fileName: "*"
tarBall: true
zipBall: true
out-file-path: "dist/"
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
if: ${{ github.event.inputs.pypi_repo == 'testpypi' }}
# - name: Publish package to PyPI
# uses: pypa/gh-action-pypi-publish@v1.4.1
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
# if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
3 changes: 2 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
push:
branches:
- master
- develop
- stable
- actions*
- docs
tags:
- v*
Expand Down

0 comments on commit 844a5ee

Please sign in to comment.