FHIR R5 Subscriptions navigation link #271
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.12.0' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: '9' | |
| - name: Create redirect page for fhirpath-editor | |
| run: | | |
| mkdir -p fhirpath-editor | |
| cat > fhirpath-editor/index.html << 'EOF' | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>FHIRPath Editor - Moved</title> | |
| <meta http-equiv="refresh" content="3;url=https://healthsamurai.github.io/fhirpath-editor/"> | |
| <script> | |
| // Immediate redirect | |
| window.location.href = "https://healthsamurai.github.io/fhirpath-editor/"; | |
| </script> | |
| <style> | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; | |
| max-width: 600px; | |
| margin: 100px auto; | |
| padding: 20px; | |
| text-align: center; | |
| background-color: #f8f9fa; | |
| } | |
| .container { | |
| background: white; | |
| padding: 40px; | |
| border-radius: 8px; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| } | |
| h1 { color: #2c5aa0; margin-bottom: 20px; } | |
| p { margin: 15px 0; line-height: 1.6; } | |
| a { color: #2c5aa0; text-decoration: none; font-weight: 500; } | |
| a:hover { text-decoration: underline; } | |
| .countdown { font-weight: bold; color: #d73a49; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>🚀 FHIRPath Editor has moved!</h1> | |
| <p>This project is now available at its new location.</p> | |
| <p>You will be automatically redirected in <span class="countdown">3</span> seconds.</p> | |
| <p>If you are not redirected automatically, <a href="https://healthsamurai.github.io/fhirpath-editor/">click here to go to the new location</a>.</p> | |
| <p><small>New URL: <a href="https://healthsamurai.github.io/fhirpath-editor/">https://healthsamurai.github.io/fhirpath-editor/</a></small></p> | |
| </div> | |
| <script> | |
| // Countdown timer | |
| let countdown = 3; | |
| const countdownElement = document.querySelector('.countdown'); | |
| const timer = setInterval(() => { | |
| countdown--; | |
| if (countdownElement) countdownElement.textContent = countdown; | |
| if (countdown <= 0) { | |
| clearInterval(timer); | |
| window.location.href = "https://healthsamurai.github.io/fhirpath-editor/"; | |
| } | |
| }, 1000); | |
| </script> | |
| </body> | |
| </html> | |
| EOF | |
| - name: Build Aidbox Forms renderers | |
| run: | | |
| pnpm install --frozen-lockfile --dir aidbox-forms/aidbox-forms-builder-custom-renderer/csiro-renderer | |
| pnpm install --frozen-lockfile --dir aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer | |
| pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/csiro-renderer build | |
| pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer build | |
| mkdir -p renderers/csiro renderers/smart-forms | |
| cp -R aidbox-forms/aidbox-forms-builder-custom-renderer/csiro-renderer/dist/* renderers/csiro/ | |
| cp -R aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer/dist/* renderers/smart-forms/ | |
| - name: Publish | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: . |