Rename the update step to publish
This commit is contained in:
@@ -7,10 +7,10 @@ projects, in the same spirit as [tic80-tools](../tic80-tools).
|
|||||||
(`build`, `wasm`, `export`, `watch`, `clean`), native binary targets
|
(`build`, `wasm`, `export`, `watch`, `clean`), native binary targets
|
||||||
(`binaries`, `binary-win-x86`, `binary-win-x64`, `binary-linux-x64`)
|
(`binaries`, `binary-win-x86`, `binary-win-x64`, `binary-linux-x64`)
|
||||||
plus the Woodpecker pipeline targets (`ci-version`, `ci-export`,
|
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
|
- `example-woodpecker.yaml` — Woodpecker pipeline: version → export
|
||||||
(Go, `GOOS=js GOARCH=wasm`) → binaries (native desktop zips) →
|
(Go, `GOOS=js GOARCH=wasm`) → binaries (native desktop zips) →
|
||||||
upload (HTTP POST to `/build/upload`) → update (calls the teletypegames
|
upload (HTTP POST to `/build/upload`) → publish (calls the teletypegames
|
||||||
`/build/publish` endpoint with `platform=ebitengine`).
|
`/build/publish` endpoint with `platform=ebitengine`).
|
||||||
- `example-tasks.json` — VS Code `.vscode/tasks.json` with the common
|
- `example-tasks.json` — VS Code `.vscode/tasks.json` with the common
|
||||||
dev tasks: **Run** (`go run .`, default build task, `Cmd+Shift+B`),
|
dev tasks: **Run** (`go run .`, default build task, `Cmd+Shift+B`),
|
||||||
|
|||||||
@@ -182,8 +182,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=ebitengine&version=$$VERSION"
|
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
|
.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
|
||||||
@@ -27,7 +27,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
|
||||||
@@ -35,4 +35,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