Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
@ -1,17 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
build:
|
|
||||||
image: alpine:3.13
|
|
||||||
commands:
|
|
||||||
- apk add zip make
|
|
||||||
- make
|
|
||||||
publish:
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: GITEA_KEY
|
|
||||||
base_url: https://gitea.malloc.hackerbots.net/
|
|
||||||
files:
|
|
||||||
- ./*.zip
|
|
||||||
- ./*.sha1
|
|
||||||
when:
|
|
||||||
event: tag
|
|
15
Makefile
15
Makefile
@ -1,17 +1,12 @@
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
BUILD_VERSION:=$(shell git describe --tags)
|
all: malloc-items-1.0.zip malloc-items-1.0.zip.sha1
|
||||||
|
|
||||||
all: malloc-items-$(BUILD_VERSION).zip malloc-items-$(BUILD_VERSION).zip.sha1
|
malloc-items-1.0.zip: pack.mcmeta
|
||||||
|
zip -r malloc-items-1.0.zip pack.mcmeta assets
|
||||||
|
|
||||||
pack.mcmeta: pack.mcmeta.in
|
malloc-items-1.0.zip.sha1: malloc-items-1.0.zip
|
||||||
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
|
|
||||||
|
|
||||||
malloc-items-$(BUILD_VERSION).zip: pack.mcmeta
|
|
||||||
zip -r malloc-items-$(BUILD_VERSION).zip pack.mcmeta assets
|
|
||||||
|
|
||||||
malloc-items-$(BUILD_VERSION).zip.sha1: malloc-items-$(BUILD_VERSION).zip
|
|
||||||
sha1sum $< > $@
|
sha1sum $< > $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f malloc-items-$(BUILD_VERSION).zip malloc-items-$(BUILD_VERSION).zip.sha1
|
rm -f malloc-items-1.0.zip malloc-items-1.0.zip.sha1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 9,
|
"pack_format": 9,
|
||||||
"description": "The Magic of Malloc (v1.0.0)"
|
"description": "The Magic of Malloc (1.0.0)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"pack": {
|
|
||||||
"pack_format": 9,
|
|
||||||
"description": "The Magic of Malloc (@VERSION@)"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user