This commit is contained in:
parent
f9888588d6
commit
ccfdde5c52
@ -1,7 +1,8 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: alpine
|
image: alpine:3.14
|
||||||
commands:
|
commands:
|
||||||
|
- apk add zip make
|
||||||
- make
|
- make
|
||||||
publish:
|
publish:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
@ -9,4 +10,6 @@ pipeline:
|
|||||||
api_key:
|
api_key:
|
||||||
from_secret: GITEA_KEY
|
from_secret: GITEA_KEY
|
||||||
base_url: https://gitea.malloc.hackerbots.net/
|
base_url: https://gitea.malloc.hackerbots.net/
|
||||||
files: *.zip *.sha1
|
files:
|
||||||
|
- ./*.zip
|
||||||
|
- ./*.sha1
|
3
Makefile
3
Makefile
@ -4,6 +4,9 @@ BUILD_VERSION:=$(shell git describe --tags)
|
|||||||
|
|
||||||
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
|
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
|
||||||
|
|
||||||
|
pack.mcmeta: pack.mcmeta.in
|
||||||
|
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
|
||||||
|
|
||||||
malloc-data-$(BUILD_VERSION).zip: pack.mcmeta
|
malloc-data-$(BUILD_VERSION).zip: pack.mcmeta
|
||||||
zip -r $@ pack.mcmeta data
|
zip -r $@ pack.mcmeta data
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 10,
|
"pack_format": 10,
|
||||||
"description": "Malloc Minecraft Item Functions (1.0.0)"
|
"description": "Malloc Minecraft Item Functions (v1.0.0-1-gf988858)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
6
pack.mcmeta.in
Normal file
6
pack.mcmeta.in
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"pack": {
|
||||||
|
"pack_format": 10,
|
||||||
|
"description": "Malloc Minecraft Item Functions (@VERSION@)"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user