From abe2e9c222c69b9a5df52a9efbd067e2b309fe8e Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Wed, 5 Aug 2026 22:06:57 +0200 Subject: [PATCH] Rename the update step to publish --- README.md | 2 +- example-makefile.make | 4 ++-- example-woodpecker.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9e74f4f..61b5647 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ projects, in the same spirit as [tic80-tools](../tic80-tools). - `example-makefile.make` — project Makefile: local dev targets (`build`, `love`, `web`, `export`, `binaries`, `watch`, `clean`) plus the Woodpecker pipeline targets (`ci-version`, `ci-export`, - `ci-binaries`, `ci-upload`, `ci-update`). + `ci-binaries`, `ci-upload`, `ci-publish`). - `example-woodpecker.yaml` — Woodpecker pipeline: version → export (`.love` package + love.js web build) → binaries (fused desktop builds) → upload (HTTP POST to `/build/upload`) → update (calls the diff --git a/example-makefile.make b/example-makefile.make index 2ad5b04..ecf6d14 100644 --- a/example-makefile.make +++ b/example-makefile.make @@ -205,9 +205,9 @@ 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=love&version=$$VERSION"; \ curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=love-web&version=$$VERSION" -.PHONY: all build love web export binaries binary-win binary-mac binary-linux watch clean ci-version ci-export ci-binaries ci-upload ci-update \ No newline at end of file +.PHONY: all build love web export binaries binary-win binary-mac binary-linux watch clean ci-version ci-export ci-binaries ci-upload ci-publish \ No newline at end of file diff --git a/example-woodpecker.yaml b/example-woodpecker.yaml index 7b567d0..334d9dc 100644 --- a/example-woodpecker.yaml +++ b/example-woodpecker.yaml @@ -27,7 +27,7 @@ steps: - apk add --no-cache make curl - make ci-upload - - name: update + - name: publish image: alpine environment: UPDATE_SERVER: https://teletypegames.org @@ -35,4 +35,4 @@ steps: from_secret: update_secret_key commands: - apk add --no-cache make curl - - make ci-update \ No newline at end of file + - make ci-publish \ No newline at end of file