From 7aa23a3e5fe58ccdd17d904fcda260155a4cf96e Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Wed, 5 Aug 2026 22:06:52 +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 55b1649..e892159 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ spirit as [tic80-tools](../tic80-tools). - `example-makefile.make` — project Makefile: local dev targets (`deps`, `build`, `run`, `clear`, `rebuild`, `rebuildrun`) plus the Woodpecker pipeline targets (`ci-version`, `ci-build`, `ci-artifact`, - `ci-update`). + `ci-publish`). - `example-woodpecker.yaml` — Woodpecker pipeline: version → build (Debian, `apt install acme`) → artifact (HTTP POST to `/build/upload`) → - update (calls the teletypegames `/build/publish` endpoint with + publish (calls the teletypegames `/build/publish` endpoint with `platform=c64`). - `example-metadata.json` — catalog metadata; the `version` field drives `ci-version`, the rest (`name`, `title`, `author`, `desc`, `site`, diff --git a/example-makefile.make b/example-makefile.make index 9038307..228fa17 100644 --- a/example-makefile.make +++ b/example-makefile.make @@ -79,9 +79,9 @@ ci-artifact: "$(UPDATE_SERVER)/build/upload?name=$(PROJECT)&version=$$VERSION" || exit 1; \ done -ci-update: +ci-publish: @VERSION=$$(cat $(VERSION_FILE)); \ echo "==> Triggering update for version $$VERSION"; \ curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=c64&version=$$VERSION" -.PHONY: all deps build run clear rebuild rebuildrun ci-version ci-build ci-artifact ci-update +.PHONY: all deps build run clear rebuild rebuildrun ci-version ci-build ci-artifact ci-publish diff --git a/example-woodpecker.yaml b/example-woodpecker.yaml index 9dc4404..9239669 100644 --- a/example-woodpecker.yaml +++ b/example-woodpecker.yaml @@ -20,7 +20,7 @@ steps: - 'apk add --no-cache make curl' - 'make ci-artifact' - - 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'