pangeo with keywords using semicolons #140
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
name: Generate xml sitemap | |
on: | |
push: | |
branches: | |
# using env variable in base-url-path does work | |
# base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/$GITHUB_BASE_REF/metadata/Dataset/allgood | |
# so it you want to trigger a sitemap for your branch commit and change branches | |
# don't forget to roll back before PR. | |
- main | |
jobs: | |
# docs_deploy: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/setup-python@v2 | |
# with: | |
# python-version: 3.x | |
# - run: pip install mkdocs | |
# - run: pip install mkdocs-schema-reader | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# | |
# # - run: cd docs/ && mkdocs gh-deploy --force --clean --verbose | |
# # - run: mkdocs gh-deploy --force --clean --verbose | |
# - run: mkdocs gh-deploy --force --clean --verbose | |
sitemap_job: | |
# needs: docs_deploy | |
runs-on: ubuntu-latest | |
name: Generate a sitemap | |
steps: | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- run: pip install mkdocs | |
- run: pip install mkdocs-schema-reader | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
# - run: mkdocs gh-deploy --force --clean --verbose | |
# the original sitemap, at metadata/Dataset root | |
- name: Generate the dataset allgood sitemap | |
id: sitemapdatasetallgood | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/main/metadata/Dataset/allgood | |
path-to-root: metadata/Dataset/allgood | |
include-pdf: false | |
additional-extensions: json jsonld | |
- name: Output dataset allgood stats | |
run: | | |
echo "sitemap-path = ${{ steps.sitemapdatasetallgood.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemapdatasetallgood.outputs.url-count }}" | |
echo "excluded-count = ${{ steps.sitemapdatasetallgood.outputs.excluded-count }}" | |
# | |
- name: Generate the dataset json sitemap | |
id: sitemapdatasetjson | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/main/metadata/Dataset/json | |
path-to-root: metadata/Dataset/json | |
include-pdf: false | |
additional-extensions: json jsonld | |
- name: Output dataset json stats | |
run: | | |
echo "sitemap-path = ${{ steps.sitemapdatasetjson.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemapdatasetjson.outputs.url-count }}" | |
echo "excluded-count = ${{ steps.sitemapdatasetjson.outputs.excluded-count }}" | |
# | |
- name: Generate the dataset actualdata sitemap | |
id: sitemapdatasetactualdata | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/main/metadata/Dataset/actualdata | |
path-to-root: metadata/Dataset/actualdata | |
include-pdf: false | |
additional-extensions: json jsonld | |
- name: Output dataset json stats | |
run: | | |
echo "sitemap-path = ${{ steps.sitemapdatasetactualdata.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemapdatasetactualdata.outputs.url-count }}" | |
echo "excluded-count = ${{ steps.sitemapdatasetactualdata.outputs.excluded-count }}" | |
# | |
- name: Generate the development sitemap | |
id: sitemapdevelopment | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/main/metadata/development/ | |
path-to-root: metadata/development | |
include-pdf: false | |
additional-extensions: json jsonld | |
- name: Output development stats | |
run: | | |
echo "sitemap-path = ${{ steps.sitemapdevelopment.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemapdevelopment.outputs.url-count }}" | |
echo "excluded-count = ${{ steps.sitemapdevelopment.outputs.excluded-count }}"- name: Deploy | |
- name: Generate the otherResources sitemap | |
id: sitemapotherResources | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/main/metadata/otherResources/ | |
path-to-root: metadata/OtherResources/ | |
include-pdf: false | |
additional-extensions: json jsonld | |
- name: Output otherResources stats | |
run: | | |
echo "sitemap-path = ${{ steps.sitemapotherResources.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemapotherResources.outputs.url-count }}" | |
- run: mkdocs build --config-file mkdocs_geocodesmetadata.yml | |
- name: push to gh pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: . | |
clean: false | |
- name: Generate the depth sitemap | |
id: sitemaDepthResources | |
uses: cicirello/generate-sitemap@v1 | |
with: | |
base-url-path: https://raw.githubusercontent.com/earthcube/GeoCODES-Metadata/main/metadata/Dataset/depth/obis | |
path-to-root: metadata/Dataset/depth/obis | |
include-pdf: false | |
additional-extensions: json jsonld | |
- name: Output depth | |
run: | | |
echo "sitemap-path = ${{ steps.sitemaDepthResources.outputs.sitemap-path }}" | |
echo "url-count = ${{ steps.sitemaDepthResources.outputs.url-count }}" | |
- run: mkdocs build --config-file mkdocs_geocodesmetadata.yml | |
- name: push to gh pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: . | |
clean: false |