Rename the update step to publish
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
.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
|
||||
@@ -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
|
||||
- make ci-publish
|
||||
Reference in New Issue
Block a user