From f2630753a2beeef51008b6c37cec897eee0d4a0f Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Wed, 5 Aug 2026 22:06:59 +0200 Subject: [PATCH] Rename the update step to publish --- README.md | 4 ++-- example-makefile.make | 4 ++-- example-woodpecker.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7f9b0cd..45f2de7 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ projects, in the same spirit as - `example-makefile.make` — project Makefile: local dev targets (`build`, `web`, `serve`, `export`, `watch`, `clean`) plus the Woodpecker pipeline targets (`ci-version`, `ci-export`, `ci-upload`, - `ci-update`). + `ci-publish`). - `example-woodpecker.yaml` — Woodpecker pipeline: version → build (syntax check + web bundle in the - `git.teletypegames.org/internal/phaser-builder` image) → upload (HTTP POST to `/build/upload`) → update (calls the teletypegames `/build/publish` endpoint + `git.teletypegames.org/internal/phaser-builder` image) → upload (HTTP POST to `/build/upload`) → publish (calls the teletypegames `/build/publish` endpoint with `platform=phaser`). - `builder.Dockerfile` — the CI builder image: `node:22-alpine` with make/zip/curl baked in. diff --git a/example-makefile.make b/example-makefile.make index bbf47bb..81bf388 100644 --- a/example-makefile.make +++ b/example-makefile.make @@ -77,8 +77,8 @@ ci-upload: "$(UPDATE_SERVER)/build/upload?name=$(PROJECT)&version=$$VERSION" || exit 1; \ done -ci-update: +ci-publish: @VERSION=$$(cat $(VERSION_FILE)); \ curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=phaser&version=$$VERSION" -.PHONY: all build web serve export watch clean ci-version ci-export ci-upload ci-update +.PHONY: all build web serve export watch clean ci-version ci-export ci-upload ci-publish diff --git a/example-woodpecker.yaml b/example-woodpecker.yaml index fed9e51..e7accac 100644 --- a/example-woodpecker.yaml +++ b/example-woodpecker.yaml @@ -20,7 +20,7 @@ steps: - apk add --no-cache make curl - make ci-upload - - name: update + - name: publish image: alpine environment: UPDATE_SERVER: https://teletypegames.org @@ -28,4 +28,4 @@ steps: from_secret: update_secret_key commands: - apk add --no-cache make curl - - make ci-update + - make ci-publish