Skip to content

refactor: consolidate transport spec as JSON-RPC & MCP Transport (#167) #106

refactor: consolidate transport spec as JSON-RPC & MCP Transport (#167)

refactor: consolidate transport spec as JSON-RPC & MCP Transport (#167) #106

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: deploy
cancel-in-progress: true
jobs:
build-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
load: true
tags: ietf-spec-tools:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Generate artifacts
run: |
mkdir -p .cache
docker run --rm --user $(id -u):$(id -g) -e HOME=/data -v ${{ github.workspace }}:/data ietf-spec-tools:latest /data/scripts/gen.sh
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
name: ietf-specs-${{ github.sha }}
path: artifacts/
retention-days: 90
- name: Publish spec artifacts as GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete latest --yes --cleanup-tag 2>/dev/null || true
gh release create latest artifacts/*.html artifacts/*.txt artifacts/*.xml artifacts/*.pdf \
--title "Latest spec artifacts" \
--notes "Auto-published spec build artifacts from commit ${{ github.sha }}.
Contains HTML, TXT, XML, and PDF renderings of all IETF Payment Auth specifications." \
--latest
- name: Prepare GitHub Pages
run: |
mkdir -p _site/fonts
cp pages/index.html _site/
cp pages/fonts/*.woff2 _site/fonts/
cp -r pages/problems _site/problems
cp artifacts/*.html artifacts/*.txt artifacts/*.xml artifacts/*.pdf _site/
echo "paymentauth.org" > _site/CNAME
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4