feat: 添加 GitHub Actions 工作流以发布 pyheic-struct 到 PyPI

This commit is contained in:
nymiro
2025-10-23 18:18:38 +13:00
parent e9c4f17f6e
commit cc534cfca4
+34
View File
@@ -0,0 +1,34 @@
name: Publish pyheic-struct to PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tooling
run: python -m pip install --upgrade pip build
- name: Build distributions
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true
skip-existing: true