Skip to content

The data app joins the site, and says when it is thinking #77

The data app joins the site, and says when it is thinking

The data app joins the site, and says when it is thinking #77

Workflow file for this run

name: Deploy site to GitHub Pages
# The published site is assembled from files already in the repository —
# no build step, because RingScript ships prebuilt artifacts:
#
# site/ the marketing site (index.html, story.html, style.css)
# playground/ the Playground + the runtime it loads
# *.png logo and screenshot used by both
#
# Result: / → the site /playground/ → the Playground
on:
push:
branches: [main]
paths:
- 'site/**'
- 'playground/**'
- 'starter/**'
- 'bin/**'
- '*.png'
- '.github/workflows/pages.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Assemble the site
run: |
mkdir -p _site
cp -r site/. _site/
mkdir -p _site/playground
cp -r playground/. _site/playground/
# Repo-root images used by the site; anything already inside site/
# (the announcement screenshot, favicon) came across with site/. above.
cp ringscript-logo.png playground.png _site/
# The starter kit people download: the folder from starter/, plus the
# runtime and the prebuilt servers. Assembled here rather than
# committed, so the zip can never drift from what is in the repo.
mkdir -p ringscript-starter/server
cp starter/README.txt starter/index.html starter/app.ring \
starter/clock.html starter/clock.ring \
starter/start-windows.bat starter/start-mac-linux.sh \
starter/favicon.svg ringscript-starter/
cp playground/ringscript.js playground/ringscript.wasm ringscript-starter/
cp bin/* ringscript-starter/server/
chmod +x ringscript-starter/start-mac-linux.sh ringscript-starter/server/*
zip -qr _site/ringscript-starter.zip ringscript-starter
echo "starter kit: $(du -h _site/ringscript-starter.zip | cut -f1)"
# No Jekyll processing: this is plain static HTML.
touch _site/.nojekyll
ls -R _site | head -40
- uses: actions/configure-pages@v6
# include-hidden-files is NOT optional here. v4 stopped putting
# dotfiles in the artifact, and the .nojekyll written above is a
# dotfile — without it GitHub runs the published site through Jekyll,
# which quietly drops anything beginning with _ and treats {{ }} in
# the pages as Liquid. v5 added this input to put them back.
- uses: actions/upload-pages-artifact@v5
with:
path: _site
include-hidden-files: true
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# v5 is v4.0.5 with the Node 24 runtime and nothing else: same inputs,
# same outputs. v4 still ran, but only because GitHub was forcing it
# onto Node 24 and saying so in every log.
- id: deployment
uses: actions/deploy-pages@v5