Rename the update step to publish
This commit is contained in:
@@ -7,7 +7,7 @@ CI/CD templates for [TIC-80](https://tic80.com) (Lua) game projects.
|
|||||||
`import_assets`, `export_assets`, `clean`, `install_precommit_hook`)
|
`import_assets`, `export_assets`, `clean`, `install_precommit_hook`)
|
||||||
plus the Woodpecker pipeline targets (`ci-version`, `ci-lint`,
|
plus the Woodpecker pipeline targets (`ci-version`, `ci-lint`,
|
||||||
`ci-minify`, `ci-docs`, `ci-export`, `ci-binaries`, `ci-artifact`,
|
`ci-minify`, `ci-docs`, `ci-export`, `ci-binaries`, `ci-artifact`,
|
||||||
`ci-update`).
|
`ci-publish`).
|
||||||
- `example-woodpecker.yaml` — Woodpecker pipeline: version → lint →
|
- `example-woodpecker.yaml` — Woodpecker pipeline: version → lint →
|
||||||
minify → docs → export (TIC-80 Pro image) → binaries (native
|
minify → docs → export (TIC-80 Pro image) → binaries (native
|
||||||
players, same image) → artifact (HTTP POST to `/build/upload`) → update
|
players, same image) → artifact (HTTP POST to `/build/upload`) → update
|
||||||
|
|||||||
@@ -289,9 +289,9 @@ ci-artifact:
|
|||||||
"$(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)); \
|
||||||
echo "==> Triggering update for version $$VERSION"; \
|
echo "==> Triggering update for version $$VERSION"; \
|
||||||
curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=tic80&version=$$VERSION"
|
curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=tic80&version=$$VERSION"
|
||||||
|
|
||||||
.PHONY: all build download-minify minify export binaries watch import_assets export_assets clean lint install_precommit_hook docs ci-version ci-lint ci-minify ci-docs ci-export ci-binaries ci-artifact ci-update
|
.PHONY: all build download-minify minify export binaries watch import_assets export_assets clean lint install_precommit_hook docs ci-version ci-lint ci-minify ci-docs ci-export ci-binaries ci-artifact ci-publish
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ steps:
|
|||||||
- 'apk add --no-cache make curl'
|
- 'apk add --no-cache make curl'
|
||||||
- 'make ci-artifact'
|
- 'make ci-artifact'
|
||||||
|
|
||||||
- name: update
|
- name: publish
|
||||||
image: alpine
|
image: alpine
|
||||||
environment:
|
environment:
|
||||||
UPDATE_SERVER: https://teletypegames.org
|
UPDATE_SERVER: https://teletypegames.org
|
||||||
@@ -62,4 +62,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