Skip to content

alrightyg

alrightyg #2

Workflow file for this run

name: Publish to PyPI
on:
push:
paths: ["usps/__init__.py", "pyproject.toml"]
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/usps-cli
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e . hatch
- name: Build package
run: hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1