From 40de5a280750208766a56e2e85806289dd6cb384 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 Jan 2020 16:09:50 +0100 Subject: [PATCH] add drone config --- .drone.yml | 48 +++++++++++++++++++++++++++++++++ .gitignore | 1 - CHANGELOG.md | 0 exampleSite/themes/hugo-geekdoc | 1 + 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .drone.yml create mode 100644 CHANGELOG.md create mode 120000 exampleSite/themes/hugo-geekdoc diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cf343a7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,48 @@ +--- +kind: pipeline +name: build + +steps: +- name: assets + image: node + commands: + - npm install -g gulp -s + - npm install -s + - gulp default + +- name: test + image: klakegg/hugo:0.59.1-ext-alpine + commands: + - cd exampleSite/ && hugo-official + +- name: build + image: alpine + commands: + - mkdir dist/ + - tar -zcvf . -f dist/hugo-geekdoc.tar.gz --exclude='.git*' --exclude='.drone*' --exclude='dist' --exclude='.git*' --exclude='example*' --exclude='src' --exclude='gulp*' --exclude='package*' + +- name: checksum + image: alpine + commands: + - "cd dist/ && sha256sum * > ../sha256sum.txt" + +- name: publish + image: plugins/github-release + settings: + api_key: + from_secret: github_token + files: + - "dist/*" + - sha256sum.txt + note: CHANGELOG.md + overwrite: true + title: "${DRONE_TAG}" + when: + ref: + - "refs/tags/**" + +trigger: + ref: + - refs/heads/master + - refs/tags/** + - refs/pull/** diff --git a/.gitignore b/.gitignore index 19fba66..032f1ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # local environments .env* node_modules/ -exampleSite/themes/ # auto-generated files layouts/partials/icons-svg-symbols.html diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/exampleSite/themes/hugo-geekdoc b/exampleSite/themes/hugo-geekdoc new file mode 120000 index 0000000..a24d5e8 --- /dev/null +++ b/exampleSite/themes/hugo-geekdoc @@ -0,0 +1 @@ +../../. \ No newline at end of file