# Capture the demo rig's baseline (docs/website/DEMO_MODE.md ยง7.2). Run by hand, # after setting the demo default set up through the demo site: the permission # groups, a few NPCs, a clan for the demo's Team. It stops the rig (a power stop # runs `quit`, which saves the world, DM22), compresses oxide/data, oxide/config # and server/ into demo-baseline.tar.gz at the server root, and starts # it again. Every wipe from then on restores that archive. # # Run it right after a wipe has finished and the default set is in place, not # while visitors are mid-change: whatever is on the rig is what every later # cycle returns to. name: Demo baseline on: workflow_dispatch: {} concurrency: group: demo-rig cancel-in-progress: false env: DEMO_DIR: ${{ vars.DEMO_DIR || '/opt/demo.runicgateway.com' }} PTERODACTYL_URL: ${{ vars.PTERODACTYL_URL || 'http://192.168.0.12' }} PTERODACTYL_SERVER: ${{ vars.PTERODACTYL_SERVER || '6eb9d621' }} NODE_IMAGE: node:22.23.4-alpine jobs: baseline: runs-on: demo-site if: github.ref == 'refs/heads/main' steps: - name: Check out the deploy files uses: actions/checkout@v4 - name: Capture the baseline env: PTERODACTYL_CLIENT_KEY: ${{ secrets.PTERODACTYL_CLIENT_KEY }} run: | set -euo pipefail docker run --rm -v "$PWD/deploy/demo:/demo:ro" \ -e PTERODACTYL_URL -e PTERODACTYL_SERVER -e PTERODACTYL_CLIENT_KEY \ "$NODE_IMAGE" node /demo/rig.mjs baseline