Rename the update step to publish

This commit is contained in:
2026-08-05 22:06:52 +02:00
parent 82cdffceef
commit 7aa23a3e5f
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -6,10 +6,10 @@ spirit as [tic80-tools](../tic80-tools).
- `example-makefile.make` — project Makefile: local dev targets - `example-makefile.make` — project Makefile: local dev targets
(`deps`, `build`, `run`, `clear`, `rebuild`, `rebuildrun`) plus the (`deps`, `build`, `run`, `clear`, `rebuild`, `rebuildrun`) plus the
Woodpecker pipeline targets (`ci-version`, `ci-build`, `ci-artifact`, Woodpecker pipeline targets (`ci-version`, `ci-build`, `ci-artifact`,
`ci-update`). `ci-publish`).
- `example-woodpecker.yaml` — Woodpecker pipeline: version → build - `example-woodpecker.yaml` — Woodpecker pipeline: version → build
(Debian, `apt install acme`) → artifact (HTTP POST to `/build/upload`) → (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`). `platform=c64`).
- `example-metadata.json` — catalog metadata; the `version` field drives - `example-metadata.json` — catalog metadata; the `version` field drives
`ci-version`, the rest (`name`, `title`, `author`, `desc`, `site`, `ci-version`, the rest (`name`, `title`, `author`, `desc`, `site`,
+2 -2
View File
@@ -79,9 +79,9 @@ ci-artifact:
"$(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)); \
echo "==> Triggering update for version $$VERSION"; \ 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" 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
+2 -2
View File
@@ -20,7 +20,7 @@ steps:
- 'apk add --no-cache make curl' - 'apk add --no-cache make curl'
- 'make ci-artifact' - 'make ci-artifact'
- 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'