Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Interactive table on gems page #393

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
ref: gh-pages
path: docs
- name: Set up Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
ruby-version: "3.1"
- name: Install latest bundler
run: gem install bundler --no-document
- name: Bundle install
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v1
with:
version: "12.10.0"
version: "16.13.2"
- name: Restore npm package cache
uses: actions/cache@v1
with:
Expand All @@ -55,20 +55,20 @@ jobs:
run: bundle exec rake projects:symlink
- name: Build Middleman site
run: bundle exec middleman build --verbose
- name: Check internal links
run: bundle exec rake check_links:internal
#- name: Check internal links
# run: bundle exec rake check_links:internal
- name: Prepare build artifact
if: github.event_name == 'push' && contains(github.ref, 'master') || (github.event_name == 'repository_dispatch' && github.event.action == 'ci')
#if: github.event_name == 'push' && contains(github.ref, 'master') || (github.event_name == 'repository_dispatch' && github.event.action == 'ci')
run: mkdir build && tar cvzf build/docs.tar.gz --exclude ".git" ./docs
- name: Upload build artifact
if: github.event_name == 'push' && contains(github.ref, 'master') || (github.event_name == 'repository_dispatch' && github.event.action == 'ci')
#if: github.event_name == 'push' && contains(github.ref, 'master') || (github.event_name == 'repository_dispatch' && github.event.action == 'ci')
uses: actions/upload-artifact@v1
with:
name: build
path: build/docs.tar.gz
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'master') || (github.event_name == 'repository_dispatch' && github.event.action == 'ci')
#if: github.event_name == 'push' && contains(github.ref, 'master') || (github.event_name == 'repository_dispatch' && github.event.action == 'ci')
needs: build
steps:
- name: Clone
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Extract the build
run: tar xvf build/docs.tar.gz
- name: Deploy to GitHub Pages
uses: maxheld83/[email protected]
env:
GH_PAT: ${{secrets.GH_PAT}}
BUILD_DIR: "docs"
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "./docs"
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ gem "rake"
gem "builder", "~> 3.0"

# Middleman
gem "middleman", "5.0.0.rc.1"
gem "middleman", "~> 5.0.0.rc.2", github: "middleman/middleman" # Remove github source when rc.2 is released (See: middleman/middleman#2524)
gem "middleman-dotenv"
gem "middleman-minify-html"
gem "middleman-blog"
gem "middleman-syntax"
gem "middleman-docsite", git: "https://github.com/solnic/middleman-docsite", branch: "master"
gem "middleman-docsite", github: "solnic/middleman-docsite"

# Middleman extra deps
gem "better_errors"
Expand Down
Loading