Skip to content

Commit

Permalink
Merge pull request github#921 from github/jk-replaces-pages-builder
Browse files Browse the repository at this point in the history
Add new pages builder
  • Loading branch information
kenyonj authored Apr 22, 2019
2 parents d20262c + d8349a4 commit 9e3d304
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ action "CI Test Runner" {
uses = "./.github/test_runner"
secrets = ["GITHUB_TOKEN"]
}

workflow "build" {
on = "push"
resolves = ["Jekyll Pages Builder"]
}

action "Jekyll Pages Builder" {
uses = "./.github/pages_builder"
secrets = ["GITHUB_TOKEN"]
}
14 changes: 14 additions & 0 deletions .github/pages_builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM jekyll/jekyll

LABEL "com.github.actions.name"="Jekyll Pages Builder"
LABEL "com.github.actions.description"="Build the full jekyll pages site"
LABEL "com.github.actions.icon"="gear"
LABEL "com.github.actions.color"="purple"

ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

COPY entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions .github/pages_builder/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -l

script/bootstrap
cd test && npm install && cd ..
JEKYLL_GITHUB_TOKEN=$GITHUB_TOKEN script/build

0 comments on commit 9e3d304

Please sign in to comment.