Skip to content

update workflow and install method. #2

update workflow and install method.

update workflow and install method. #2

name: Publish to TestPyPI
on:
push:
branches: [ dev ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish to TestPyPI
env:
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --verbose --repository-url https://test.pypi.org/legacy/ --password $TEST_PYPI_API_TOKEN dist/*