diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..f820c6f --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,35 @@ +name: check +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + checklinks: + name: Linux + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + - name: Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2.1 + - name: Setup 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: Check for broken links + run: | + bundle exec htmlproofer ./_site --disable-external --no-enforce-https --allow-missing-href --no-check-internal-hash + - name: check more + run: | + _scripts/run_check.pl diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 537a7c4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: ruby -rvm: -- 3.0.5 - -before_script: - - chmod +x ./_scripts/build-jekyll.sh # or do this locally and commit - -# Assume bundler is being used, therefore -# the `install` step will run `bundle install` by default. -#script: bundle exec jekyll build --verbose --trace -script: /bin/sh ./_scripts/build-jekyll.sh - -# branch whitelist, only for GitHub Pages -branches: - only: - - master - -env: - global: - - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer - -sudo: false # route your build to the container-based infrastructure for a faster build diff --git a/README.md b/README.md index 5ff4199..05661e6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ submitting them back to us. See COPYING for more information. Otherwise, please do not create mirrors of the site, thanks. -[![Build Status](https://app.travis-ci.com/irchelp/irchelp.github.io.svg?branch=master)](https://app.travis-ci.com/irchelp/irchelp.github.io) +[![status](https://github.com/irchelp/irchelp.github.io/workflows/check/badge.svg)](https://github.com/irchelp/irchelp.github.io) + [![#irchelp on efnet](https://img.shields.io/badge/efnet-%23irchelp-pink.svg)](http://chat.efnet.org:9090/?nick=guest1234&channels=%23irchelp) [![#irchelp on libera.chat](https://img.shields.io/badge/libera.chat-%23irchelp-pink.svg)](https://web.libera.chat/#irchelp) diff --git a/_scripts/build-jekyll.sh b/_scripts/build-jekyll.sh deleted file mode 100644 index 9db0941..0000000 --- a/_scripts/build-jekyll.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -set -e # halt script on error - -./_scripts/run_check.pl - -bundle exec jekyll build --strict_front_matter -# for right now, we don't want to test external sites -# when we get closer to relaunch, remove this so that -# we do test them. -bundle exec htmlproofer ./_site \ - --disable-external=true \ - --enforce-https=false \ - --allow-missing-href=true \ - --check-internal-hash=false diff --git a/_scripts/deploy_staging.sh b/_scripts/deploy_staging.sh deleted file mode 100755 index 698ccb8..0000000 --- a/_scripts/deploy_staging.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -rm -rf out || exit 0; -mkdir out; -( cd out - git init - git config user.name "Travis-CI" - git config user.email "travis@travis-ci.org" - cp -aR ../documents/_counter/* . - touch .nojekyll - git add -A - git commit -m "Automatically deployed ${TRAVIS_COMMIT} to staging site http://irchelp.github.io" - git push --force --quiet "https://${GH_TOKEN}@github.com/irchelp/irchelp.github.io/" master:master > /dev/null 2>&1 -)