Skip to content

Commit abf2a0c

Browse files
use github action and pages
- switch from gitlab-ci to github actions - use gh-pages for docs - publish to pypi
1 parent 2bf7ff3 commit abf2a0c

File tree

9 files changed

+133
-112
lines changed

9 files changed

+133
-112
lines changed

.github/workflows/docs.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Docs
2+
3+
env:
4+
PIXI_LOCKED: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
docs:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- name: Set up Pixi
17+
uses: prefix-dev/[email protected]
18+
with:
19+
pixi-version: v0.59.0
20+
run-install: false
21+
- run: pixi run -e docs deploy

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to PyPi
2+
3+
env:
4+
PIXI_LOCKED: true
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
13+
publish:
14+
runs-on: ubuntu-latest
15+
if: github.ref == 'refs/heads/main'
16+
env:
17+
TWINE_USERNAME: "__token__"
18+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
19+
TWINE_REPOSITORY_URL: "https://upload.pypi.org/legacy/"
20+
steps:
21+
- uses: actions/checkout@v5
22+
- name: Set up Pixi
23+
uses: prefix-dev/[email protected]
24+
with:
25+
pixi-version: v0.59.0
26+
run-install: false
27+
- run: pixi run -e build deploy

.github/workflows/publish_test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish to Test PyPi
2+
3+
env:
4+
PIXI_LOCKED: true
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
if: github.ref != 'refs/heads/main'
15+
env:
16+
TWINE_USERNAME: "__token__"
17+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
18+
TWINE_REPOSITORY_URL: "https://test.pypi.org/legacy/"
19+
steps:
20+
- uses: actions/checkout@v5
21+
- name: Set up Pixi
22+
uses: prefix-dev/[email protected]
23+
with:
24+
pixi-version: v0.59.0
25+
run-install: false
26+
- run: pixi run -e build deploy

.github/workflows/test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
3+
4+
env:
5+
PIXI_LOCKED: true
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
- name: Set up Pixi
21+
uses: prefix-dev/[email protected]
22+
with:
23+
pixi-version: v0.59.0
24+
run-install: false
25+
- run: pixi run -e lint lint
26+
27+
test:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
gdal: [gdal38, gdal39, gdal310, gdal311]
32+
stac_version: ["1.0.0", "1.1.0"]
33+
steps:
34+
- uses: actions/checkout@v5
35+
- name: Set up Pixi
36+
uses: prefix-dev/[email protected]
37+
with:
38+
pixi-version: v0.59.0
39+
run-install: false
40+
- run: sudo apt-get update && sudo apt-get install -y build-essential
41+
- run: pixi run -e dev-${{ matrix.gdal }} test
42+
env:
43+
PYSTAC_STAC_VERSION_OVERRIDE: ${{ matrix.stac_version }}

.gitlab-ci.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rio-stac-io is a [rasterio](https://github.com/rasterio/rasterio) extension to o
66

77
## Documentation
88

9-
https://planetary-variables.pages.earth.planet.com/forests/rio-stac-io/
9+
https://planetlabs.github.io/rio-stac-io
1010

1111

1212
## Installation

mkdocs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ site_dir: 'build'
99
# site info
1010
repo_name: 'forests/rio-stac-io'
1111
repo_url: 'https://github.com/planetlabs/rio-stac-io'
12-
site_url: 'https://planetary-variables.pages.earth.planet.com/forests/rio-stac-io/'
13-
12+
site_url: 'https://planetlabs.github.io/rio-stac-io'
1413
# social
1514
extra:
1615
social:
1716
- icon: 'material/earth'
18-
link: 'https://hello.planet.com/code/planetary-variables/forests'
19-
- icon: 'fontawesome/brands/gitlab'
20-
link: 'https://hello.planet.com/code/planetary-variables/forests'
17+
link: 'https://github.com/planetlabs/'
18+
- icon: 'fontawesome/brands/github'
19+
link: 'https://github.com/planetlabs/rio-stac-io'
2120

2221
# site navigation
2322
nav:

pixi.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ livereload = ">=2.6.3"
114114

115115
[tool.pixi.feature.docs.tasks]
116116
localdocs = "mkdocs serve"
117-
deploy = "mkdocs build --strict --verbose --site-dir public"
117+
deploy = "mkdocs gh-deploy"
118118

119119
######## Pixi/ Hatch Build
120120

0 commit comments

Comments
 (0)