Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: lws10-vocab/package-lock.json

- name: Build vocabulary
working-directory: lws10-vocab
run: |
npm ci
npm run build

- uses: actions/upload-pages-artifact@v3
with:
path: .

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
5 changes: 5 additions & 0 deletions lws10-vocab/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
index.html
vocabulary.ttl
vocabulary.jsonld
vocabulary.context.jsonld
21 changes: 21 additions & 0 deletions lws10-vocab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# LWS Vocabulary

This directory contains the source definition for the **Linked Web Storage (LWS) Vocabulary**.

## Files

### Source files (edit these)
- `vocabulary.yml` — Main vocabulary definition
- `template.html` — HTML template for documentation

### Generated files (do not edit directly)
- `index.html` — Human-readable HTML documentation
- `vocabulary.ttl` — RDF/Turtle serialization
- `vocabulary.jsonld` — Full JSON-LD serialization
- `vocabulary.context.jsonld` — JSON-LD Context file

## How to regenerate locally

```bash
cd lws10-vocab
npx yml2vocab
Loading