Rename the update step to publish
This commit is contained in:
@@ -9,7 +9,7 @@ and [tic80-tools](../tic80-tools).
|
|||||||
binary targets (`binaries`, `binary-win-x86`, `binary-win-x64`,
|
binary targets (`binaries`, `binary-win-x86`, `binary-win-x64`,
|
||||||
`binary-linux-x64`, `binary-mac-universal`) plus the Woodpecker
|
`binary-linux-x64`, `binary-mac-universal`) plus the Woodpecker
|
||||||
pipeline targets (`ci-version`, `ci-export`, `ci-binaries`,
|
pipeline targets (`ci-version`, `ci-export`, `ci-binaries`,
|
||||||
`ci-upload`, `ci-update`).
|
`ci-upload`, `ci-publish`).
|
||||||
- `example-woodpecker.yaml` — Woodpecker pipeline: version → build
|
- `example-woodpecker.yaml` — Woodpecker pipeline: version → build
|
||||||
(headless web export + desktop binaries in the `barichello/godot-ci`
|
(headless web export + desktop binaries in the `barichello/godot-ci`
|
||||||
image) → upload (HTTP POST to `/build/upload`) → update (calls the
|
image) → upload (HTTP POST to `/build/upload`) → update (calls the
|
||||||
|
|||||||
@@ -135,8 +135,8 @@ ci-upload:
|
|||||||
"$(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)); \
|
||||||
curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=godot&version=$$VERSION"
|
curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=godot&version=$$VERSION"
|
||||||
|
|
||||||
.PHONY: all build run web export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-mac-universal binary-build binary-build-mac ci-version ci-export ci-binaries ci-upload ci-update
|
.PHONY: all build run web export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-mac-universal binary-build binary-build-mac ci-version ci-export ci-binaries ci-upload ci-publish
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ steps:
|
|||||||
- apk add --no-cache make curl
|
- apk add --no-cache make curl
|
||||||
- make ci-upload
|
- make ci-upload
|
||||||
|
|
||||||
- name: update
|
- name: publish
|
||||||
image: alpine
|
image: alpine
|
||||||
environment:
|
environment:
|
||||||
UPDATE_SERVER: https://teletypegames.org
|
UPDATE_SERVER: https://teletypegames.org
|
||||||
@@ -29,4 +29,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
|
||||||
|
|||||||
Reference in New Issue
Block a user