ci: build releases in woodpecker
This commit is contained in:
parent
28cd711543
commit
d189b7d553
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
*.zip
|
*.zip
|
||||||
*.sha1
|
*.sha1
|
||||||
|
*.swp
|
||||||
|
12
.woodpecker.yaml
Normal file
12
.woodpecker.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- make
|
||||||
|
publish:
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: GITEA_KEY
|
||||||
|
base_url: https://gitea.malloc.hackerbots.net/
|
||||||
|
files: *.zip *.sha1
|
10
Makefile
10
Makefile
@ -1,9 +1,11 @@
|
|||||||
.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
|
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 $< > $@
|
||||||
|
Loading…
Reference in New Issue
Block a user