diff --git a/.woodpecker.yml b/.woodpecker.yml index f7e0a20..2e0cc92 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/Makefile b/Makefile index d217f85..d34549b 100644 --- a/Makefile +++ b/Makefile @@ -113,8 +113,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=ebitengine&version=$$VERSION" -.PHONY: all build wasm export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-build ci-version ci-export ci-binaries ci-upload ci-update \ No newline at end of file +.PHONY: all build wasm export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-build ci-version ci-export ci-binaries ci-upload ci-publish \ No newline at end of file