Move site to Github Pages #2
Workflow file for this run
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
name: links | |
on: | |
push: | |
branches: | |
- main | |
- staging | |
pull_request: | |
jobs: | |
link_checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup prerequisites | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl make libxml2-dev libxslt-dev libnode-dev node-gyp npm openssl xsltproc | |
- name: Setup snaps | |
run: | | |
sudo snap install aws-cli --classic | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
bundler-cache: true | |
cache-version: 0 # Increment this number if you need to re-download cached gems | |
- name: Update submodules | |
run: | | |
make update-init update-modules | |
- name: Use Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- name: Setup npm | |
run: | | |
npm install | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v3 | |
- name: Build site | |
run: | | |
make _site | |
- name: Link Checker | |
uses: lycheeverse/lychee-action@v1.2.0 | |
with: | |
args: --verbose --no-progress --exclude-file .lycheeignore -- _site/**/*.html | |
fail: true | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
# - name: Create Issue From File | |
# uses: peter-evans/create-issue-from-file@v2 | |
# with: | |
# title: Link Checker Report | |
# content-filepath: ./lychee/out.md | |
# labels: report, automated issue |