Skip to content

Pin gh-action-pypi-publish to release/v1 instead of sunset master branch #284

Pin gh-action-pypi-publish to release/v1 instead of sunset master branch

Pin gh-action-pypi-publish to release/v1 instead of sunset master branch #284

Workflow file for this run

name: Publish to PyPi-Test
on:
push:
branches-ignore:
- main
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build-n-publish:
name: Build and publish Python
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
matrix:
python-version:
- "3.8"
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
python -m pip install --upgrade tox
- name: Initialize tox env
run: |
python -m tox -e build-dists --parallel auto --notest
- name: Build dists
run: |
python -m tox -e build-dists --parallel 0
- name: Publish 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
username: __token__
password: ${{ secrets.Test_PyPI_token }}
repository_url: https://test.pypi.org/legacy/