Skip to content

Commit bd84dd1

Browse files
committed
ci: add GitHub Actions workflow for PyPI publishing
- Auto-publish to PyPI when pushing version tags (v*) - Use trusted publisher authentication - Bump version to 0.1.1
1 parent 251aa8c commit bd84dd1

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
- name: Install build tools
20+
run: pip install build
21+
- name: Build
22+
run: python -m build
23+
- name: Publish to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "md2word"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Convert Markdown files to Word documents with extensive customization"
55
readme = "README.md"
66
license = { text = "MIT" }

0 commit comments

Comments
 (0)