Skip to content

hotfix: fix typo in push.yml for creating "latest" alias for document… #3

hotfix: fix typo in push.yml for creating "latest" alias for document…

hotfix: fix typo in push.yml for creating "latest" alias for document… #3

Workflow file for this run

# This workflow will build and upload a Python Package to TestPyPI
# https://github.com/marketplace/actions/pypi-publish
name: Test Building + Publishing to TestPyPI
on:
push:
branches: [main, develop]
workflow_dispatch: # Manual trigger
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/network-wrangler
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
if: steps.compare-versions.outputs.publish == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
verbose: true