Skip to content

fix: remove duplicate SCM files from root #21

fix: remove duplicate SCM files from root

fix: remove duplicate SCM files from root #21

Workflow file for this run

# SPDX-License-Identifier: PMPL-1.0-or-later
name: Deploy Landing Page
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Convert docs to HTML
run: |
# Convert AsciiDoc to HTML
sudo apt-get update && sudo apt-get install -y asciidoctor
# Convert USER-GUIDE.adoc
asciidoctor -o docs/site/USER-GUIDE.html docs/USER-GUIDE.adoc
# Convert QUICKSTART.md to HTML
echo '<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Quick Start</title>' > docs/site/QUICKSTART.html
echo '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5/github-markdown.min.css">' >> docs/site/QUICKSTART.html
echo '<style>body{max-width:800px;margin:2rem auto;padding:2rem;}</style></head>' >> docs/site/QUICKSTART.html
echo '<body class="markdown-body">' >> docs/site/QUICKSTART.html
# Use pandoc for markdown conversion
sudo apt-get install -y pandoc
pandoc QUICKSTART.md -o temp.html
cat temp.html >> docs/site/QUICKSTART.html
echo '</body></html>' >> docs/site/QUICKSTART.html
rm temp.html
# Copy examples
mkdir -p docs/site/examples
cp examples/*.json docs/site/examples/
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: 'docs/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4