Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Public event submission launch control. The flag fails closed when omitted.
#
# Private beta: enabled=true, then share /events/submit/ directly.
# Safety shutdown: enabled=false.
PUBLIC_EVENT_SUBMISSIONS_ENABLED=false
3 changes: 3 additions & 0 deletions .github/workflows/deploy-cloudflare-workers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: cloudflare-workers-production
cancel-in-progress: false

env:
PUBLIC_EVENT_SUBMISSIONS_ENABLED: ${{ vars.PUBLIC_EVENT_SUBMISSIONS_ENABLED }}

jobs:
validate-and-build:
name: Build static site
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: github-pages
cancel-in-progress: false

env:
PUBLIC_EVENT_SUBMISSIONS_ENABLED: ${{ vars.PUBLIC_EVENT_SUBMISSIONS_ENABLED }}

jobs:
build:
name: Build static site
Expand Down
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,29 @@ the build uses `content/meetups/*.yaml` instead. This keeps the public site
deployable during a temporary upstream incident without exposing organizer
credentials or connecting the browser directly to the operational system.

Pushes to `main`, manual workflow runs, and the existing Monday/Thursday
scheduled builds refresh the static meetup snapshot.
Pushes to `main`, manual workflow runs, and the daily `06:17 UTC` scheduled
build refresh the static event snapshot.

## Public event submission launch controls

Event submissions use one fail-closed build-time flag. Add it as a GitHub
Actions repository variable so GitHub Pages and Cloudflare produce the same
static release:

| Variable | Purpose |
| :-- | :-- |
| `PUBLIC_EVENT_SUBMISSIONS_ENABLED` | Hard website safety switch. When it is not `true`, `/events/submit/` redirects to `/events/`. |

- Private beta: set the variable to `true`, then share `/events/submit/`
directly with testers.
- Safety shutdown: set enabled to `false` and rebuild both static deployments.

The website does not render an event-submission link during beta, and the form
page remains `noindex`. Its permanent public entry point will be chosen after
beta. An unset variable is treated as `false`. Local development can copy
`.env.example` to `.env` and opt in explicitly. This website flag does not
disable direct requests to Events Management; the backend needs its own runtime
switch for a system-wide shutdown.

## Cloudflare Workers deployment

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
349 changes: 349 additions & 0 deletions src/components/AppDateTimePicker.astro

Large diffs are not rendered by default.

Loading
Loading