From ddce2bd3c66a62cb96b2b7ef0602c00c586c429b Mon Sep 17 00:00:00 2001 From: Gabriel Giovanini Date: Sat, 22 Jun 2019 15:40:06 +0200 Subject: Bootstrap web site --- .github/action/Dockerfile | 15 +++++++++++++++ .github/action/entrypoint.sh | 5 +++++ .github/main.workflow | 31 +++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .github/action/Dockerfile create mode 100755 .github/action/entrypoint.sh create mode 100644 .github/main.workflow (limited to '.github') diff --git a/.github/action/Dockerfile b/.github/action/Dockerfile new file mode 100644 index 0000000..5a0e30c --- /dev/null +++ b/.github/action/Dockerfile @@ -0,0 +1,15 @@ +FROM clojure:alpine + +LABEL version="0.1.0" +LABEL repository="https://github.com/viniciustozzi/pathfinder_tools.git" +LABEL homepage="https://github.com/viniciustozzi/pathfinder_tools" +LABEL maintainer="" + +LABEL com.github.actions.name="GitHub Action for lein" +LABEL com.github.actions.description="Wraps the npm CLI to enable common lein commands." +LABEL com.github.actions.icon="package" +LABEL com.github.actions.color="red" + +COPY "entrypoint.sh" "/entrypoint.sh" +ENTRYPOINT ["/entrypoint.sh"] +CMD ["help"] diff --git a/.github/action/entrypoint.sh b/.github/action/entrypoint.sh new file mode 100755 index 0000000..83edd0a --- /dev/null +++ b/.github/action/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +sh -c "lein $*" diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..995aac3 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,31 @@ +workflow "Build" { + on = "push" + resolves = ["Deploy to pages"] +} + +action "Test" { + uses = "./.github/action" + args = "test" +} + +action "Covergage" { + uses = "./.github/action" + args = "lein cloverage --junit" + needs = ["Test"] +} + +action "Package" { + uses = "./.github/action" + args = "package" + needs = ["Covergage"] +} + +action "Deploy to pages" { + uses = "JamesIves/github-pages-deploy-action@master" + env = { + BRANCH = "gh-pages" + FOLDER = "public" + } + secrets = ["ACCESS_TOKEN"] + needs = ["Package"] +} -- cgit v1.2.3