diff --git a/.woodpecker.yml b/.woodpecker.yml index afeb804..0815a92 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -25,7 +25,7 @@ steps: - 'apk add --no-cache make curl' - 'make ci-upload' - - name: update + - name: publish image: alpine environment: UPDATE_SERVER: https://teletypegames.org @@ -33,4 +33,4 @@ steps: from_secret: update_secret_key commands: - 'apk add --no-cache make curl' - - 'make ci-update' + - 'make ci-publish' diff --git a/Makefile b/Makefile index e7dde9f..f77c68a 100644 --- a/Makefile +++ b/Makefile @@ -182,8 +182,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 binaries-mac mac-release binary-win-x86 binary-win-x64 binary-linux-x64 binary-mac-x64 binary-mac-arm64 binary-build binary-build-mac ci-version ci-export ci-binaries ci-upload ci-update \ No newline at end of file +.PHONY: all build wasm export watch clean binaries binaries-mac mac-release binary-win-x86 binary-win-x64 binary-linux-x64 binary-mac-x64 binary-mac-arm64 binary-build binary-build-mac ci-version ci-export ci-binaries ci-upload ci-publish \ No newline at end of file