Rename the update step to publish

This commit is contained in:
2026-08-05 22:06:59 +02:00
parent 7173d02dcd
commit f2630753a2
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -8,10 +8,10 @@ projects, in the same spirit as
- `example-makefile.make` — project Makefile: local dev targets - `example-makefile.make` — project Makefile: local dev targets
(`build`, `web`, `serve`, `export`, `watch`, `clean`) plus the (`build`, `web`, `serve`, `export`, `watch`, `clean`) plus the
Woodpecker pipeline targets (`ci-version`, `ci-export`, `ci-upload`, Woodpecker pipeline targets (`ci-version`, `ci-export`, `ci-upload`,
`ci-update`). `ci-publish`).
- `example-woodpecker.yaml` — Woodpecker pipeline: version → build - `example-woodpecker.yaml` — Woodpecker pipeline: version → build
(syntax check + web bundle in the (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`). with `platform=phaser`).
- `builder.Dockerfile` — the CI builder image: `node:22-alpine` with - `builder.Dockerfile` — the CI builder image: `node:22-alpine` with
make/zip/curl baked in. make/zip/curl baked in.
+2 -2
View File
@@ -77,8 +77,8 @@ ci-upload:
"$(UPDATE_SERVER)/build/upload?name=$(PROJECT)&version=$$VERSION" || exit 1; \ "$(UPDATE_SERVER)/build/upload?name=$(PROJECT)&version=$$VERSION" || exit 1; \
done done
ci-update: ci-publish:
@VERSION=$$(cat $(VERSION_FILE)); \ @VERSION=$$(cat $(VERSION_FILE)); \
curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=phaser&version=$$VERSION" 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
+2 -2
View File
@@ -20,7 +20,7 @@ steps:
- apk add --no-cache make curl - apk add --no-cache make curl
- make ci-upload - make ci-upload
- name: update - name: publish
image: alpine image: alpine
environment: environment:
UPDATE_SERVER: https://teletypegames.org UPDATE_SERVER: https://teletypegames.org
@@ -28,4 +28,4 @@ steps:
from_secret: update_secret_key from_secret: update_secret_key
commands: commands:
- apk add --no-cache make curl - apk add --no-cache make curl
- make ci-update - make ci-publish