Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
publish to actions org
Tommy Byrd
committed
Dec 14, 2021
0 parents
commit 39a7bb3
Showing
46 changed files
with
2,762 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG RUBY_VERSION=2.7.4 | ||
FROM ruby:$RUBY_VERSION-slim | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
git \ | ||
locales \ | ||
nodejs | ||
|
||
COPY Gemfile Gemfile | ||
|
||
RUN NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install | ||
|
||
RUN \ | ||
echo "en_US UTF-8" > /etc/locale.gen && \ | ||
locale-gen en-US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# Manage our dependency on the version of the github-pages gem here. | ||
gem "github-pages", "= 222" | ||
|
||
# Explicitly include this gem here. | ||
# It is not directly included in the github-pages gem list of dependencies, | ||
# even though it is included in the original GitHub Pages build infrastructure. | ||
gem "jekyll-include-cache", "= 0.2.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 GitHub, Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Pages-Jekyll | ||
|
||
A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages. | ||
|
||
# Scope | ||
|
||
This is used along with [`actions/deploy-pages`](https://github.com/actions/deploy-pages) as part of the official support for building Pages with Actions (currently in public beta for public repositories). | ||
|
||
# Usage | ||
|
||
See [action.yml](action.yml) | ||
|
||
# License | ||
|
||
The scripts and documentation in this project are released under the [MIT License](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 944a666b0d79cde51b7fd3d71d3a5439 | ||
name: 'Pages Jekyll' | ||
description: 'A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages' | ||
inputs: | ||
source: | ||
description: 'Directory where the source files reside.' | ||
required: false | ||
default: ./ | ||
destination: | ||
description: 'Output directory of the build. Although it can be nested inside the source, it cannot be the same as the source directory.' | ||
required: false | ||
default: ./_site | ||
verbose: | ||
description: 'Verbose output' | ||
required: false | ||
default: '1' | ||
token: | ||
description: 'GitHub token' | ||
required: true | ||
default: ${{ github.token }} | ||
runs: | ||
using: 'docker' | ||
image: 'docker://ghcr.io/actions/jekyll-build-pages:main' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# <%= nonce %> | ||
name: 'Pages Jekyll' | ||
description: 'A simple GitHub Action for producing Jekyll build artifacts compatible with GitHub Pages' | ||
inputs: | ||
source: | ||
description: 'Directory where the source files reside.' | ||
required: false | ||
default: ./ | ||
destination: | ||
description: 'Output directory of the build. Although it can be nested inside the source, it cannot be the same as the source directory.' | ||
required: false | ||
default: ./_site | ||
verbose: | ||
description: 'Verbose output' | ||
required: false | ||
default: '1' | ||
token: | ||
description: 'GitHub token' | ||
required: true | ||
default: ${{ github.token }} | ||
runs: | ||
using: 'docker' | ||
image: '<%= pages_action_url %>' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /usr/bin/env ruby | ||
|
||
# Internal: Generate an action.yml metadata file using the inputs | ||
# | ||
# pages_action_url - Docker image URL to be used as the base action image. | ||
|
||
require 'erb' | ||
require 'securerandom' | ||
|
||
nonce = SecureRandom.hex | ||
pages_action_url = ARGV[0] | ||
|
||
action_erb_path = File.dirname(__FILE__) + '/../action.yml.erb' | ||
|
||
result = File.open(action_erb_path, 'r') do |file| | ||
ERB.new(file.read).result(binding) | ||
end | ||
|
||
puts result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
####################################################################################################### | ||
# | ||
# Calls github-pages executable to build the site using whitelisted plugins and supported configuration | ||
# | ||
####################################################################################################### | ||
|
||
set -o errexit | ||
|
||
SOURCE_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_SOURCE | ||
DESTINATION_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_DESTINATION | ||
PAGES_GEM_HOME=$BUNDLE_APP_CONFIG | ||
GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages | ||
|
||
# Set environment variables required by supported plugins | ||
export JEKYLL_ENV="production" | ||
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN | ||
export PAGES_REPO_NWO=$GITHUB_REPOSITORY | ||
|
||
if [ -z $INPUT_VERBOSE ]; then | ||
VERBOSE='' | ||
else | ||
VERBOSE='--verbose' | ||
fi | ||
|
||
cd $PAGES_GEM_HOME | ||
|
||
$GITHUB_PAGES build $VERBOSE --source $SOURCE_DIRECTORY --destination $DESTINATION_DIRECTORY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
plugins: | ||
- jekyll-include-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
--- | ||
|
||
Buy our {{ include.color }} shirt in {{ include.size }}! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
--- | ||
|
||
{% include_cached shirt.html size="medium" color="red" %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
source 'https://rubygems.org' | ||
gem 'github-pages', group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (4.2.7) | ||
i18n (~> 0.7) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.3, >= 0.3.4) | ||
tzinfo (~> 1.1) | ||
addressable (2.4.0) | ||
coffee-script (2.4.1) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.10.0) | ||
colorator (1.1.0) | ||
ethon (0.9.1) | ||
ffi (>= 1.3.0) | ||
execjs (2.7.0) | ||
faraday (0.9.2) | ||
multipart-post (>= 1.2, < 3) | ||
ffi (1.9.14) | ||
forwardable-extended (2.6.0) | ||
gemoji (2.1.0) | ||
github-pages (102) | ||
activesupport (= 4.2.7) | ||
github-pages-health-check (= 1.2.0) | ||
jekyll (= 3.3.0) | ||
jekyll-coffeescript (= 1.0.1) | ||
jekyll-feed (= 0.7.2) | ||
jekyll-gist (= 1.4.0) | ||
jekyll-github-metadata (= 2.2.0) | ||
jekyll-mentions (= 1.2.0) | ||
jekyll-paginate (= 1.1.0) | ||
jekyll-redirect-from (= 0.11.0) | ||
jekyll-sass-converter (= 1.3.0) | ||
jekyll-seo-tag (= 2.0.0) | ||
jekyll-sitemap (= 0.11.0) | ||
jekyll-swiss (= 0.4.0) | ||
jemoji (= 0.7.0) | ||
kramdown (= 1.11.1) | ||
liquid (= 3.0.6) | ||
listen (= 3.0.6) | ||
mercenary (~> 0.3) | ||
minima (= 2.0.0) | ||
rouge (= 1.11.1) | ||
terminal-table (~> 1.4) | ||
github-pages-health-check (1.2.0) | ||
addressable (~> 2.3) | ||
net-dns (~> 0.8) | ||
octokit (~> 4.0) | ||
public_suffix (~> 1.4) | ||
typhoeus (~> 0.7) | ||
html-pipeline (2.4.2) | ||
activesupport (>= 2) | ||
nokogiri (>= 1.4) | ||
i18n (0.7.0) | ||
jekyll (3.3.0) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
jekyll-sass-converter (~> 1.0) | ||
jekyll-watch (~> 1.1) | ||
kramdown (~> 1.3) | ||
liquid (~> 3.0) | ||
mercenary (~> 0.3.3) | ||
pathutil (~> 0.9) | ||
rouge (~> 1.7) | ||
safe_yaml (~> 1.0) | ||
jekyll-coffeescript (1.0.1) | ||
coffee-script (~> 2.2) | ||
jekyll-feed (0.7.2) | ||
jekyll-gist (1.4.0) | ||
octokit (~> 4.2) | ||
jekyll-github-metadata (2.2.0) | ||
jekyll (~> 3.1) | ||
octokit (~> 4.0, != 4.4.0) | ||
jekyll-mentions (1.2.0) | ||
activesupport (~> 4.0) | ||
html-pipeline (~> 2.3) | ||
jekyll (~> 3.0) | ||
jekyll-paginate (1.1.0) | ||
jekyll-redirect-from (0.11.0) | ||
jekyll (>= 2.0) | ||
jekyll-sass-converter (1.3.0) | ||
sass (~> 3.2) | ||
jekyll-seo-tag (2.0.0) | ||
jekyll (~> 3.1) | ||
jekyll-sitemap (0.11.0) | ||
addressable (~> 2.4.0) | ||
jekyll-swiss (0.4.0) | ||
jekyll-watch (1.5.0) | ||
listen (~> 3.0, < 3.1) | ||
jemoji (0.7.0) | ||
activesupport (~> 4.0) | ||
gemoji (~> 2.0) | ||
html-pipeline (~> 2.2) | ||
jekyll (>= 3.0) | ||
json (1.8.3) | ||
kramdown (1.11.1) | ||
liquid (3.0.6) | ||
listen (3.0.6) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9.7) | ||
mercenary (0.3.6) | ||
mini_portile2 (2.1.0) | ||
minima (2.0.0) | ||
minitest (5.9.1) | ||
multipart-post (2.0.0) | ||
net-dns (0.8.0) | ||
nokogiri (1.6.8.1) | ||
mini_portile2 (~> 2.1.0) | ||
octokit (4.6.0) | ||
sawyer (~> 0.8.0, >= 0.5.3) | ||
pathutil (0.14.0) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (1.5.3) | ||
rb-fsevent (0.9.8) | ||
rb-inotify (0.9.7) | ||
ffi (>= 0.5.0) | ||
rouge (1.11.1) | ||
safe_yaml (1.0.4) | ||
sass (3.4.22) | ||
sawyer (0.8.0) | ||
addressable (>= 2.3.5, < 2.6) | ||
faraday (~> 0.8, < 0.10) | ||
terminal-table (1.7.3) | ||
unicode-display_width (~> 1.1.1) | ||
thread_safe (0.3.5) | ||
typhoeus (0.8.0) | ||
ethon (>= 0.8.0) | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
unicode-display_width (1.1.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
github-pages | ||
|
||
BUNDLED WITH | ||
1.10.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This is the data for my blog | ||
|
||
It is automatically transformed by [Jekyll](http://github.com/mojombo/jekyll) | ||
into a static site whenever I push this repository to GitHub. | ||
|
||
I was tired of having my blog posts end up in a database off on some remote | ||
server. That is backwards. I've lost valuable posts that way. I want to author | ||
my posts locally in Textile or Markdown. My blog should be easily stylable and | ||
customizable any way I please. It should take care of creating a feed for me. | ||
And most of all, my site should be stored on GitHub so that I never lose data | ||
again. | ||
|
||
## License | ||
|
||
The following directories and their contents are Copyright Tom Preston-Werner. | ||
You may not reuse anything therein without my permission: | ||
|
||
* \_posts/ | ||
* images/ | ||
|
||
All other directories and files are MIT Licensed. Feel free to use the HTML and | ||
CSS as you please. If you do use them, a link back to | ||
http://github.com/mojombo/jekyll would be appreciated, but is not required. |
Oops, something went wrong.