Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 6 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,18 @@
# Canonical PyPI publish workflow for hawk-eco Python repos.
# PyPI publish workflow - DISABLED: package is not published anywhere.
# If publishing is needed in the future, re-enable and configure:
# - Add PYPI_API_TOKEN secret at https://github.com/GrayCodeAI/hawk-sdk-python/settings/secrets/actions
# - Or fix OIDC trusted publisher at https://pypi.org/manage/account/publishing/
# Triggered by release-please when it pushes a v* tag.
# Source of truth: https://github.com/GrayCodeAI/hawk/blob/main/.shared-templates/workflows/python-release.yml.tmpl
#
# Uses PyPI Trusted Publishing (OIDC) — no API tokens stored in GitHub.
# Configure once at https://pypi.org/manage/account/publishing/

name: release

on:
push:
tags: ["v*"]

permissions:
contents: read
id-token: write # required for PyPI Trusted Publishing
permissions: {} # disabled

jobs:
build-and-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/hawk-sdk
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"

- name: Install build tooling
run: |
python -m pip install --upgrade pip build

- name: Build sdist + wheel
run: python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
steps: [] # disabled
Loading