Skip to content

Use decorator for runtime patching (#59) #4

Use decorator for runtime patching (#59)

Use decorator for runtime patching (#59) #4

Workflow file for this run

name: Create Test Pypi Release
on:
push:
branches: [ main ]
jobs:
build:
if: github.repository_owner == 'memiiso'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8 ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish main to Test Pypi
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true