Skip to content

Commit ce7fae3

Browse files
authored
Merge pull request #44 from openedx/farhaan/workflow-release
feat: Add PyPI release workflow
2 parents 7bf725d + 8798735 commit ce7fae3

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
release:
8+
name: Release to PyPI
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
- name: setup python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: 3.9
19+
- name: Install build dependencies
20+
run: pip install build
21+
- name: Build package
22+
run: python -m build
23+
- name: Publish to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
with:
26+
user: __token__
27+
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
28+

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,11 @@ notifications = "tutorplatformnotifications.plugin"
5151

5252
[tool.setuptools.dynamic]
5353
version = {attr = "tutorplatformnotifications.__about__.__version__"}
54+
55+
[build-system]
56+
requires = ["setuptools>=61.0"]
57+
build-backend = "setuptools.build_meta"
58+
59+
[tool.setuptools.packages.find]
60+
where = ["."]
61+
include = ["tutorplatformnotifications*"]

0 commit comments

Comments
 (0)