Skip to content

Publish Schema

Publish Schema #1

Workflow file for this run

name: Publish Schema
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: inject env variables
uses: rlespinasse/github-slug-action@v4
- uses: actions/checkout@v4
- name: copy content for publication
run:
mkdir tmp
cp -r core/schema/ tmp/
mkdir tmp/geojson
cp -r geojson/schema/ tmp/geojson/
- name: deploy schemas for version ${{ env.GITHUB_REF_SLUG }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: tmp
destination_dir: ${{ env.GITHUB_REF_SLUG }}