Skip to content

chore: cloudless to 2025 #418

chore: cloudless to 2025

chore: cloudless to 2025 #418

Workflow file for this run

# 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-24.04
permissions:
contents: write
pages: write
pull-requests: write
packages: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Prepare build directory for permissions to be right further for copy step
run: mkdir -p build
- name: Set up Node.js for static schema validation
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24
- name: Install AJV
run: npm install -g ajv-cli
- name: Validate static JSON files against schemas
run: |
mkdir -p schemas
wget -O schemas/partnerships-schema.json \
https://eodash.github.io/eodash-schemas/race/partnerships-schema.json
wget -O schemas/providers-schema.json \
https://eodash.github.io/eodash-schemas/race/providers-schema.json
wget -O schemas/resources-schema.json \
https://eodash.github.io/eodash-schemas/race/resources-schema.json
wget -O schemas/themes-schema.json \
https://eodash.github.io/eodash-schemas/race/themes-schema.json
ajv validate -d static/partnerships.json -s schemas/partnerships-schema.json
ajv validate -d static/providers.json -s schemas/providers-schema.json
ajv validate -d static/resources.json -s schemas/resources-schema.json
ajv validate -d static/themes.json -s schemas/themes-schema.json
- name: Build
env:
SH_INSTANCE_ID: ${{ secrets.SH_INSTANCE_ID }}
SH_CLIENT_ID: ${{ secrets.SH_CLIENT_ID }}
SH_CLIENT_SECRET: ${{ secrets.SH_CLIENT_SECRET }}
run: |
docker run -v "$PWD:/workspace" -w "/workspace" -e SH_INSTANCE_ID="$SH_INSTANCE_ID" -e SH_CLIENT_ID="$SH_CLIENT_ID" -e SH_CLIENT_SECRET="$SH_CLIENT_SECRET" ghcr.io/eodash/eodash_catalog:0.5.2 eodash_catalog -gp
- name: copy static to build
run: cp -r static/* build/
- name: Deploy
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4
with:
folder: ./build
branch: gh-pages
clean-exclude: pr-preview
force: false