Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c6ca2455e4 | |||
f9888588d6 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
*.zip
|
*.zip
|
||||||
*.sha1
|
*.sha1
|
||||||
|
*.swp
|
||||||
|
17
.woodpecker.yml
Normal file
17
.woodpecker.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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,9 +1,14 @@
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
all: malloc-data-1.0.zip malloc-data-1.0.zip.sha1
|
BUILD_VERSION:=$(shell git describe --tags)
|
||||||
|
|
||||||
malloc-data-1.0.zip: pack.mcmeta
|
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
|
||||||
zip -r malloc-data-1.0.zip pack.mcmeta data
|
|
||||||
|
|
||||||
malloc-data-1.0.zip.sha1: malloc-data-1.0.zip
|
pack.mcmeta: pack.mcmeta.in
|
||||||
|
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 (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…
x
Reference in New Issue
Block a user