From 7b124a48af275afa49ec786c78eec67b6e5bddda Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 20 Feb 2019 09:54:10 +0100 Subject: [PATCH] RELEASE note --- .drone.yml | 31 ++++++++++++++++++++++++++----- RELEASE.md | 8 ++++++++ build.sh | 2 +- 3 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 RELEASE.md diff --git a/.drone.yml b/.drone.yml index 92f00ca..0349806 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,9 +15,8 @@ pipeline: test_example: image: alpine commands: - - ls -la - - ./dist/mark2web-linux-amd64 -version - - ./dist/mark2web-linux-amd64 -in example -out example_out -create -logLevel debug + - ./dist/mark2web-`cat version`-linux-amd64 -version + - ./dist/mark2web-`cat version`-linux-amd64 -in example -out example_out -create -logLevel debug build_mark2web_freebsd: image: golang:latest @@ -31,6 +30,18 @@ pipeline: branch: master event: push + build_mark2web_darwin: + image: golang:latest + environment: + - CGO_ENABLED=0 + - GOOS=darwin + - GOARCH=amd64 + commands: + - ./build.sh + when: + branch: master + event: push + build_mark2web_windows: image: golang:latest environment: @@ -57,7 +68,6 @@ pipeline: deploy_website: image: apairon/mark2web:latest commands: - - ls -la - /mark2web -version - /mark2web -in website -out html -create -logLevel debug when: @@ -67,7 +77,18 @@ pipeline: prepare_release: image: apairon/mark2web:latest commands: - - ls -la dist/ - gzip dist/* - ls -la dist/ + gitea_relase: + image: plugins/gitea-release + base_url: https://gitbase.de + files: + - dist/* + title: VERSION + note: RELEASE + checksum: + - md5 + - sha256 + when: + event: tag \ No newline at end of file diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..0e41b09 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,8 @@ +Dies ist das erste Release von *mark2web*. +In diesem Release werden folgende Features unterstützt: + +- Verabeitung von Markdown-Dateien für Website-Inhalte +- Umwandlung der Ordnerstruktur des `content`-Verzeichnis in Navigationsbäume +- Verarbeitung von Pongo2-Templates mit dem Inhalt zur finalen Website +- Kopieren der Assets ins Zielverzeichnis +- Anpassung des Asset-Pfads in den HTML-Dateien diff --git a/build.sh b/build.sh index 0005a87..bacd9ca 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ #!/bin/sh mkdir -p dist -go build -v -ldflags "-X main.Version=`cat VERSION` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" -o dist/mark2web-${GOOS}-${GOARCH}${FILEEXT} +go build -v -ldflags "-X main.Version=`cat VERSION` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" -o dist/mark2web-`cat VERSION`-${GOOS}-${GOARCH}${FILEEXT}