ci: build releases in woodpecker
This commit is contained in:
parent
28cd711543
commit
589c8680ff
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.DS_Store
|
||||
*.zip
|
||||
*.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
|
||||
|
||||
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
|
||||
zip -r malloc-data-1.0.zip pack.mcmeta data
|
||||
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
|
||||
|
||||
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 $< > $@
|
||||
|
Loading…
Reference in New Issue
Block a user