Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/push_build_to_test_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Distribute build to PyPi Test

on:
workflow_dispatch:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x

- name: Install dependencies
run: |
# Upgrade pip
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
python3 -m pip install pyogg pymunk
python3 -m pip install -e .[dev]

# Install the package from setup.py
python3 setup.py install

# Upload to TestPyPI
- name: Build and Upload to TestPyPI
run: |
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_TOKEN }}
TWINE_REPOSITORY: testpypi