Compare commits

..

7 Commits

Author SHA1 Message Date
vorotamoroz 50247a80ea Deploy QR aggregator with GitHub Pages 2026-07-12 12:05:05 +00:00
vorotamoroz 42a333a571 Record P2P validation infrastructure 2026-07-12 20:40:38 +09:00
vorotamoroz a6a5f7af53 Use merged storage capability contracts 2026-07-12 20:40:38 +09:00
vorotamoroz 4df87cc96a Explain portable storage path policy 2026-07-12 20:40:38 +09:00
vorotamoroz d16e66c67a Track unreleased storage contract changes 2026-07-12 20:40:38 +09:00
vorotamoroz 57e26f1079 Enforce rooted storage path contracts 2026-07-12 20:40:38 +09:00
vorotamoroz dbb8d2be22 test: establish storage adapter contracts 2026-07-12 20:40:38 +09:00
+67
View File
@@ -0,0 +1,67 @@
name: Deploy GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'aggregator.html'
- '.github/workflows/deploy-pages.yml'
pull_request:
paths:
- 'aggregator.html'
- '.github/workflows/deploy-pages.yml'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Validate and package Pages site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate aggregator
run: |
test -s aggregator.html
grep -Fq '<!DOCTYPE html>' aggregator.html
grep -Fq 'obsidian://setuplivesync?settingsQR=' aggregator.html
sed -n '/<script>/,/<\/script>/p' aggregator.html | sed '1d;$d' > aggregator.js
node --check aggregator.js
rm aggregator.js
- name: Prepare Pages site
run: |
mkdir -p _site
cp aggregator.html _site/aggregator.html
touch _site/.nojekyll
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
name: Deploy GitHub Pages
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4