Skip to content

Commit edaf007

Browse files
committed
🚀 Prep for initial release, add github flows to publish to pypi (and ci)
1 parent 5ca8ec1 commit edaf007

4 files changed

Lines changed: 49 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: astral-sh/setup-uv@v7
15+
- uses: pre-commit/action@v3.0.1

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
id-token: write
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- uses: astral-sh/setup-uv@v7
16+
- uses: pre-commit/action@v3.0.1
17+
18+
publish:
19+
needs: lint
20+
runs-on: ubuntu-latest
21+
environment: release
22+
steps:
23+
- uses: actions/checkout@v6
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v7
27+
28+
- name: Build package
29+
run: uv build
30+
31+
- name: Publish to PyPI
32+
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 = "discourse-reader"
3-
version = "0.1.0"
3+
version = "1.0.0"
44
description = "A simple Python wrapper for reading data from Discourse forums"
55
license = { text = "MIT" }
66
readme = "README.md"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)