-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c48f364
Showing
7 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# This is a basic workflow takes care of building and deploying | ||
# catalog when pushing to main branch | ||
|
||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: [ "main" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
pages: write | ||
pull-requests: write | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
pip install -U pip | ||
pip install json2yaml | ||
pip install eodash_catalog==0.1.6 | ||
- name: Convert JSON to YAML | ||
run: | | ||
mkdir -p collections | ||
for file in json_collections/*.json; do | ||
json2yaml "$file" > "collections/$(basename "$file" .json).yaml" | ||
mkdir -p indicators | ||
for file in json_indicators/*.json; do | ||
json2yaml "$file" > "indicators/$(basename "$file" .json).yaml" | ||
done | ||
- name: Build | ||
env: | ||
SH_INSTANCE_ID: ${{ secrets.SH_INSTANCE_ID }} | ||
SH_CLIENT_ID: ${{ secrets.SH_CLIENT_ID }} | ||
SH_CLIENT_SECRET: ${{ secrets.SH_CLIENT_SECRET }} | ||
SH_INSTANCE_ID_POLARTEP: ${{ secrets.SH_INSTANCE_ID_POLARTEP }} | ||
SH_CLIENT_ID_POLARTEP: ${{ secrets.SH_CLIENT_ID_POLARTEP }} | ||
SH_CLIENT_SECRET_POLARTEP: ${{ secrets.SH_CLIENT_SECRET_POLARTEP }} | ||
# actually run the catalog generation | ||
run: eodash_catalog | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ./build | ||
branch: gh-pages | ||
clean-exclude: pr-preview | ||
force: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
id: "GTIF-Austria" | ||
title: "GTIF Austria" | ||
description: "Green Transition Information Factory - Austria" | ||
endpoint: "https://gtif-austria.github.io/public-catalog/GTIF-Austria/" | ||
default_base_layers: "layers/baselayers" | ||
default_overlay_layers: "layers/overlays" | ||
collections: | ||
- LULUCF_land_use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"Agency": [ | ||
"ESA" | ||
], | ||
"Resources": [ | ||
{ | ||
"Name": "COG source", | ||
"Style": "test_assets/cog_style.json", | ||
"Bbox": [11, 46.5, 15.5, 48.9], | ||
"TimeEntries": [ | ||
{ | ||
"Time": "2023", | ||
"Assets": [ | ||
{ | ||
"Identifier": "solar_power", | ||
"File": "https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/v2/SolarPowerPotential_Annual_COG_clipped_3857_fixed.tif" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- id: cloudless-2022 | ||
name: EOxCloudless 2022 | ||
url: '//s2maps-tiles.eu/wmts/1.0.0/s2cloudless-2022_3857/default/g/{z}/{y}/{x}.jpeg' | ||
media_type: image/jpeg | ||
protocol: 'xyz' | ||
visible: true | ||
Attribution: '{ EOxCloudless 2022: <a href="//s2maps.eu" target="_blank">Sentinel-2 cloudless - s2maps.eu</a> by <a href="//eox.at" target="_blank">EOX IT Services GmbH</a> (Contains modified Copernicus Sentinel data 2022) }' | ||
- id: terrain-light | ||
name: Terrain light | ||
url: '//s2maps-tiles.eu/wmts/1.0.0/terrain-light_3857/default/g/{z}/{y}/{x}.jpeg' | ||
media_type: image/jpeg | ||
visible: false | ||
protocol: 'xyz' | ||
Attribution: '{ Terrain light: Data © <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors and <a href="//maps.eox.at/#data" target="_blank">others</a>, Rendering © <a href="http://eox.at" target="_blank">EOX</a> }' | ||
- id: eox-osm | ||
name: 'OSM Background' | ||
url: '//s2maps-tiles.eu/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpeg' | ||
media_type: image/jpeg | ||
visible: false | ||
protocol: 'xyz' | ||
Attribution: '{ OSM: Data © <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors and <a href="//maps.eox.at/#data" target="_blank">others</a>, Rendering © <a href="http://eox.at" target="_blank">EOX</a> }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- id: overlay_bright | ||
name: 'Overlay labels' | ||
url: '//s2maps-tiles.eu/wmts/1.0.0/overlay_base_bright_3857/default/g/{z}/{y}/{x}.png' | ||
Attribution: '{ Overlay: Data © <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors, Made with Natural Earth, Rendering © <a href="//eox.at" target="_blank">EOX</a> }' | ||
visible: true | ||
protocol: 'xyz' |