Skip to content

Commit 6d645c6

Browse files
Install pybind11 and update PyPI project URL
Added step to install pybind11 and updated PyPI URL.
1 parent 0b1215f commit 6d645c6

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
release-build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.x"
28+
29+
- name: Install Dependencies
30+
run: |
31+
python -m pip install pybind11
32+
33+
- name: Build release distributions
34+
run: |
35+
# NOTE: put your own distribution build steps here.
36+
python -m pip install build
37+
python -m build
38+
39+
- name: Upload distributions
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: release-dists
43+
path: dist/
44+
45+
pypi-publish:
46+
runs-on: ubuntu-latest
47+
needs:
48+
- release-build
49+
permissions:
50+
# IMPORTANT: this permission is mandatory for trusted publishing
51+
id-token: write
52+
53+
# Dedicated environments with protections for publishing are strongly recommended.
54+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
55+
environment:
56+
name: pypi
57+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
58+
url: https://pypi.org/p/docx-comment-parser
59+
#
60+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
61+
# ALTERNATIVE: exactly, uncomment the following line instead:
62+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
63+
64+
steps:
65+
- name: Retrieve release distributions
66+
uses: actions/download-artifact@v4
67+
with:
68+
name: release-dists
69+
path: dist/
70+
71+
- name: Publish release distributions to PyPI
72+
uses: pypa/gh-action-pypi-publish@release/v1
73+
with:
74+
packages-dir: dist/

0 commit comments

Comments
 (0)