Skip to content

Commit 709aa32

Browse files
committed
feat: add release workflow
1 parent d8bb238 commit 709aa32

File tree

3 files changed

+629
-30
lines changed

3 files changed

+629
-30
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: "release"
11+
cancel-in-progress: false
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
environment:
20+
name: pypi
21+
url: https://pypi.org/p/stac-fastapi-geoparquet
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
- name: Setup Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.x"
29+
- name: Install build
30+
run: pip install build
31+
- name: Build
32+
run: python -m build
33+
- name: Publish to PyPI
34+
if: startsWith(github.ref, 'refs/tags/v')
35+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stac-fastapi-geoparquet"
33
version = "0.0.1"
44
description = "A stac-fastapi implementation with a stac-geoparquet backend"
55
readme = "README.md"
6-
requires-python = ">=3.12"
6+
requires-python = ">=3.10"
77
dependencies = [
88
"attr>=0.3.2",
99
"fastapi>=0.115.8",
@@ -12,7 +12,7 @@ dependencies = [
1212
"stac-fastapi-api>=5.0.2",
1313
"stac-fastapi-extensions>=5.0.2",
1414
"stac-fastapi-types>=5.0.2",
15-
"stacrs==0.5.8",
15+
"stacrs==0.5.9",
1616
]
1717

1818
[project.optional-dependencies]
@@ -21,7 +21,7 @@ serve = ["uvicorn>=0.34.0"]
2121

2222
[dependency-groups]
2323
dev = [
24-
"boto3>=1.37.4",
24+
"boto3>=1.37.11",
2525
"fastapi[standard]>=0.115.6",
2626
"httpx>=0.28.1",
2727
"mkdocs-material>=9.6.5",

0 commit comments

Comments
 (0)