Skip to content

v0.1.0

v0.1.0 #1

Workflow file for this run

# Copyright (c) 2026 Santander Group
# SPDX-License-Identifier: Apache-2.0
#
# Publish to PyPI on GitHub Release using OIDC trusted publishing.
# No long-lived PYPI_TOKEN is required: configure the project on PyPI under
# "Manage publishing" -> "Trusted publishers" with this repo, this workflow
# file name (`release.yml`) and environment name (`pypi`).
name: Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build sdist + wheel
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.11"
- name: Install build
run: |
python -m pip install --upgrade pip
pip install build
- name: Build distributions
run: python -m build
- name: Upload build artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: dist
path: dist/
publish-pypi:
name: Publish to PyPI
needs: [build]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/causal-perception-implementation
permissions:
id-token: write # OIDC for PyPI trusted publishing
contents: read
steps:
- name: Download distributions
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3
with:
packages-dir: dist/
print-hash: true