Skip to content

multi-scale multi-kernel LNCC loss + docs for stateful losses (#74) #1

multi-scale multi-kernel LNCC loss + docs for stateful losses (#74)

multi-scale multi-kernel LNCC loss + docs for stateful losses (#74) #1

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# Uses trusted publishing if configured, otherwise falls back to API token
# For trusted publishing: Configure at https://pypi.org/manage/account/publishing/
# For API token: Set PYPI_API_TOKEN secret in GitHub repository settings
password: ${{ secrets.PYPI_API_TOKEN }}