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

[INFRA] Draft linkchecker Action #308

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
43 changes: 37 additions & 6 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,45 @@ on:
branches: [ main ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"

- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"

linkchecker:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2

- name: Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Set up Rubygems, Bundler, jekyll
run: |
gem update --system --no-document
gem update bundler --no-document
gem install jekyll bundler
bundle install

- name: Build jekyll website with drafts
run: bundle exec jekyll build --drafts

- name: Link Checker
uses: lycheeverse/[email protected]
with:
args: --verbose --no-progress _site/**/*.md _site/**/*.html
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}