From 8acb8352e619f837afc561295a40a829013e4c37 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 9 Jun 2016 15:42:31 +0100 Subject: [PATCH] remove bintray --- .travis.yml | 7 ------ README.md | 2 -- dist/automate.sh | 61 ----------------------------------------------- dist/bintray.json | 15 ------------ 4 files changed, 85 deletions(-) delete mode 100644 dist/automate.sh delete mode 100644 dist/bintray.json diff --git a/.travis.yml b/.travis.yml index 975a7a76..e40df108 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,10 +22,3 @@ install: script: - caddydev --output="caddy" --source="." hugo - go test ./... -- bash dist/automate.sh -deploy: - provider: bintray - file: dist/bintray.json - user: hacdias - key: - secure: gzIpZj4UTnvcpyY3d6+9IThG/5S0vcdvu+/E0fgeryWzKvJVOUFYCNsP1TeFgi3fd64vb+p17UoHA1I6QLc8BPAYpUEGY11JZlSHE13ScAcYSd97IhixL5DMnNWQLGCHoE4v1cUwSKyZYOu9vsjCgZf2JwhJHDMzNMH+5JQxMJcA4A+GsaaqARlxy2NKxA7DwohTPJuxzxMcvoVLlcFM6rCFrqQcHZ+LosVEpSwWm30mlS9BPQPu2Zm0QZruO/xuoufxeC94Szs3nlTXLSrNi05Z7IUvCBJDOEiCzzvX1q7kkIqKE6o2gkb2fkJEdKpocLvtDv2Z2JunN2utzLZrVVOyZ33xhtYcO9df+5y3lREHeWETThoxu64eFifVTp35b/eQUb4BTuFb7WsbCLv8wB1f/oVRcqhjL+RCQVrBjzXb27OwWLK7a1y9yQAgqke07zbsRvk6BbgbIQ5zU4WeYCQmztBct3YkdC9fJQJHp8N+Oui+Jeqnypikinhxd5/RKpFGdOH9V9QDpzS29Dv8CzGtmIog0KpdMcqhZ6K6sZGGFb5z6IC7zQvFBaPZKzFFaKsaQxmnTXwhSyJfWBPjWG/GkUbhbu6QN3gzr3l6l43Gl3PcCk21UwyVZ7KnXvLLujtPPm8CtsCW43O29luJL7iq7ke4yvZnz9Uc7L/Qd3k= diff --git a/README.md b/README.md index 11658d38..fa050b4a 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ # hugo - a caddy plugin - [![Build](https://img.shields.io/travis/hacdias/caddy-hugo.svg?style=flat-square)](https://travis-ci.org/hacdias/caddy-hugo) [![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com) [![Documentation](https://img.shields.io/badge/caddy-doc-F06292.svg?style=flat-square)](https://caddyserver.com/docs/hugo) [![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-hugo) -[![Executables](https://img.shields.io/bintray/v/hacdias/generic/caddy-hugo.svg?style=flat-square)](https://bintray.com/hacdias/generic/caddy-hugo/) [Hugo](http://gohugo.io/) is an easy to use and fast command line static website generator, while [Caddy](http://caddyserver.com) is a lightweight, fast, general-purpose, cross-platform HTTP/2 web server with automatic HTTPS. This extension is able to bring a web interface to Caddy to manage Hugo generated websites. This plugin provides you an web interface to manage your websites made with Hugo. diff --git a/dist/automate.sh b/dist/automate.sh deleted file mode 100644 index 86e21a1d..00000000 --- a/dist/automate.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash -set -e -set -o pipefail -shopt -s nullglob # if no files match glob, assume empty list instead of string literal - -MainDir=$(pwd) - -## PACKAGE TO BUILD -Package=github.com/mholt/caddy - -## PATHS TO USE -DistDir=$MainDir/dist -BuildDir=$DistDir/builds -ReleaseDir=$DistDir/release - -caddyext install hugo:github.com/hacdias/caddy-hugo - -## BEGIN - -# Compile binaries -mkdir -p $BuildDir -cd $BuildDir -rm -f caddy* -gox $Package - -# Zip them up with release notes and stuff -mkdir -p $ReleaseDir -cd $ReleaseDir -rm -f caddy* -for f in $BuildDir/* -do - # Name .zip file same as binary, but strip .exe from end - zipname=$(basename ${f%".exe"}) - if [[ $f == *"linux"* ]] || [[ $f == *"bsd"* ]]; then - zipname=${zipname}.tar.gz - else - zipname=${zipname}.zip - fi - - # Binary inside the zip file is simply the project name - binbase=$(basename $Package) - if [[ $f == *.exe ]]; then - binbase=$binbase.exe - fi - bin=$BuildDir/$binbase - mv $f $bin - - # Compress distributable - if [[ $zipname == *.zip ]]; then - zip -j $zipname $bin - else - tar -cvzf $zipname -C $BuildDir $binbase - fi - - # Put binary filename back to original - mv $bin $f -done - -cd $MainDir/dist -sed -i 's/{TIME}/'$(date +%s)'/g' bintray.json -sed -i 's|{PATH}|'$MainDir'|g' bintray.json diff --git a/dist/bintray.json b/dist/bintray.json deleted file mode 100644 index f47dc61e..00000000 --- a/dist/bintray.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "package": { - "name": "caddy-hugo", - "repo": "generic", - "subject": "hacdias" - }, - "version": { - "name": "{TIME}" - }, - "files": [{ - "includePattern": "{PATH}/dist/release/(.*)", - "uploadPattern": "caddy-hugo/{TIME}/$1" - }], - "publish": true -}