ci: build releases in woodpecker

This commit is contained in:
Victoria Fierce 2023-02-18 13:26:33 +01:00
parent 28cd711543
commit d189b7d553
3 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.DS_Store *.DS_Store
*.zip *.zip
*.sha1 *.sha1
*.swp

12
.woodpecker.yaml Normal file
View 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

View File

@ -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 $< > $@