Skip to content

📦 Publish 🐍 snekmate to TestPyPI #4

📦 Publish 🐍 snekmate to TestPyPI

📦 Publish 🐍 snekmate to TestPyPI #4

name: 📦 Publish 🐍 snekmate to TestPyPI
on: [workflow_dispatch]
jobs:
build-n-publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
architecture:
- x64
python-version:
- 3.11
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- 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 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/