Skip to content

Commit 747c336

Browse files
committed
release: v0.1.3
1 parent a68db3c commit 747c336

File tree

5 files changed

+42
-10
lines changed

5 files changed

+42
-10
lines changed

.github/workflows/python-publish.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
release:
1111
types: [created]
1212

13+
# Add these top-level permissions
14+
permissions:
15+
contents: write
16+
id-token: write
17+
1318
jobs:
1419
test:
1520
runs-on: ubuntu-latest
@@ -66,18 +71,42 @@ jobs:
6671
run: |
6772
python -m build
6873
74+
- name: Upload package distributions
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: python-package-distributions
78+
path: dist/
79+
6980
- name: Publish to PyPI
70-
if: github.event_name == 'release'
81+
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v')
7182
uses: pypa/gh-action-pypi-publish@release/v1
7283
with:
7384
user: __token__
7485
password: ${{ secrets.PYPI_API_TOKEN }}
7586
skip-existing: true
7687

77-
- name: Publish package distributions to GitHub Releases
78-
uses: python-actions/gh-release@v1
88+
- name: Sign the dists with Sigstore
89+
uses: sigstore/gh-[email protected]
7990
with:
80-
repository: ${{ github.repository }}
81-
tag_name: ${{ github.ref_name }}
82-
files: |
83-
dist/*
91+
inputs: >-
92+
./dist/*.tar.gz
93+
./dist/*.whl
94+
95+
- name: Create GitHub Release
96+
env:
97+
GITHUB_TOKEN: ${{ github.token }}
98+
run: >-
99+
gh release create
100+
"$GITHUB_REF_NAME"
101+
--repo "$GITHUB_REPOSITORY"
102+
--notes "This release was automatically created by the GitHub Actions workflow."
103+
- name: Upload artifact signatures to GitHub Release
104+
env:
105+
GITHUB_TOKEN: ${{ github.token }}
106+
# Upload to GitHub Release using the `gh` CLI.
107+
# `dist/` contains the built packages, and the
108+
# sigstore-produced signatures and certificates.
109+
run: >-
110+
gh release upload
111+
"$GITHUB_REF_NAME" dist/**
112+
--repo "$GITHUB_REPOSITORY"

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
recursive-include msgspec_schemaorg/models *.py
2+
include README.md
3+
include LICENSE

msgspec_schemaorg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- Maintains type safety with modern Python type annotations
1212
"""
1313

14-
__version__ = "0.1.2"
14+
__version__ = "0.1.3"
1515

1616
# Import the key functions and classes to expose at the package level
1717
from .generate import fetch_and_generate, SchemaProcessor

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "msgspec-schemaorg"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "Generate Python msgspec.Struct classes from the Schema.org vocabulary"
99
readme = "README.md"
1010
requires-python = ">=3.10"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="msgspec-schemaorg",
5-
version="0.1.2",
5+
version="0.1.3",
66
author="Michael Deeb",
77
author_email="[email protected]",
88
description="Generate Python msgspec.Struct classes from the Schema.org vocabulary",

0 commit comments

Comments
 (0)