Skip to content

📦 Publish 🐍 snekmate to TestPyPI #7

📦 Publish 🐍 snekmate to TestPyPI

📦 Publish 🐍 snekmate to TestPyPI #7

name: 📦 Publish 🐍 snekmate to TestPyPI
on: [workflow_dispatch]
jobs:
build-n-publish:
runs-on: ${{ matrix.os }}
permissions:
id-token: write
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:
repository-url: https://test.pypi.org/legacy/