Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Jekyll site CI

on:
push:
branches:
- master
schedule:
- cron: 0 10 * * *

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.x'
- name: Install Dependencies
run: |
bundle install
- name: Build site with jekyll
run: |
bundle exec jekyll build -d build
- name: Commit and Push to gh-pages
run: |
# https://github.com/helaili/jekyll-action/blob/master/entrypoint.sh#L49
cd build
touch .nojekyll
git init
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add .
git commit -m 'jekyll build from Action'
git push --force https://${ADABOT_PAT}@github.com/${GITHUB_REPOSITORY}.git HEAD:gh-pages
rm -fr .git
cd ..
env:
ADABOT_PAT: ${{ secrets.ADABOT_PAT }}
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ group :development do
gem 'rake'
gem 'image_processing'
end

gem "jekyll-get-json", "~> 0.0.1"
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GEM
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.0.5)
deep_merge (1.2.1)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
Expand All @@ -30,6 +31,9 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-get-json (0.0.1)
deep_merge (~> 1.2)
jekyll (~> 3.0)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
Expand Down Expand Up @@ -71,6 +75,7 @@ PLATFORMS
DEPENDENCIES
image_processing
jekyll (~> 3.8.4)
jekyll-get-json (~> 0.0.1)
jekyll-paginate
jekyll-seo-tag
jekyll-sitemap
Expand Down
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ plugins:
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-paginate
- jekyll-get-json
# Build settings
markdown: kramdown
kramdown:
Expand All @@ -31,6 +32,10 @@ collections:
blinka:
output: true

jekyll_get_json:
- data: libraries
json: 'https://adafruit-circuit-python.s3.amazonaws.com/adabot/web/libraries.json'

### Exclude from processing.
exclude:
- Gemfile
Expand Down
Loading