43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
steps:
|
|
- name: version
|
|
image: alpine
|
|
commands:
|
|
- apk add --no-cache git make jq
|
|
- make ci-version
|
|
|
|
- name: build
|
|
image: git.teletypegames.org/internal/ebitengine-builder:latest
|
|
pull: true
|
|
commands:
|
|
# in CI clone the framework next to the workspace so it resolves.
|
|
- if grep -q '=> \.\./inkwell' go.mod; then git clone https://git.teletypegames.org/games/inkwell ../inkwell; fi
|
|
- make ci-export
|
|
|
|
- name: binaries
|
|
image: git.teletypegames.org/internal/ebitengine-builder:latest
|
|
pull: true
|
|
commands:
|
|
# önálló futáshoz is: ha a framework még nincs odaklónozva, pótoljuk
|
|
- if grep -q '=> \.\./inkwell' go.mod && [ ! -d ../inkwell ]; then git clone https://git.teletypegames.org/games/inkwell ../inkwell; fi
|
|
- make ci-binaries
|
|
|
|
- name: artifact
|
|
image: alpine
|
|
environment:
|
|
UPDATE_SERVER: https://teletypegames.org
|
|
UPDATE_SECRET:
|
|
from_secret: update_secret_key
|
|
commands:
|
|
- apk add --no-cache make curl
|
|
- make ci-upload
|
|
|
|
- name: publish
|
|
image: alpine
|
|
environment:
|
|
UPDATE_SERVER: https://teletypegames.org
|
|
UPDATE_SECRET:
|
|
from_secret: update_secret_key
|
|
commands:
|
|
- apk add --no-cache make curl
|
|
- make ci-publish
|