Skip to content

change CI to build the dist #3

change CI to build the dist

change CI to build the dist #3

Workflow file for this run

name: test-pypi-push
on:
push:
paths:
- 'changepoynt/**'
- 'tests/**'
- '.github/workflows/test_pypi.yml'
pull_request:
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- name: Get the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
- name: Make the build steps for the packaging
run: |
python3 -m pip install --upgrade build
python3 -m build
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/