Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
*.zip
|
*.zip
|
||||||
*.sha1
|
*.sha1
|
||||||
*.swp
|
|
||||||
|
@ -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
|
|
13
Makefile
13
Makefile
@ -1,14 +1,9 @@
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
BUILD_VERSION:=$(shell git describe --tags)
|
all: malloc-data-1.0.zip malloc-data-1.0.zip.sha1
|
||||||
|
|
||||||
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
|
malloc-data-1.0.zip: pack.mcmeta
|
||||||
|
zip -r malloc-data-1.0.zip pack.mcmeta data
|
||||||
|
|
||||||
pack.mcmeta: pack.mcmeta.in
|
malloc-data-1.0.zip.sha1: malloc-data-1.0.zip
|
||||||
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
|
|
||||||
|
|
||||||
malloc-data-$(BUILD_VERSION).zip: pack.mcmeta
|
|
||||||
zip -r $@ pack.mcmeta data
|
|
||||||
|
|
||||||
malloc-data-$(BUILD_VERSION).zip.sha1: malloc-data-$(BUILD_VERSION).zip
|
|
||||||
sha1sum $< > $@
|
sha1sum $< > $@
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 10,
|
"pack_format": 10,
|
||||||
"description": "Malloc Minecraft Item Functions (v1.0.0-1-gf988858)"
|
"description": "Malloc Minecraft Item Functions (1.0.0)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"pack": {
|
|
||||||
"pack_format": 10,
|
|
||||||
"description": "Malloc Minecraft Item Functions (@VERSION@)"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user