-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.28 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Publish Site
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**.qmd'
- '**.yml'
- '**.css'
- '**.scss'
jobs:
publish:
name: Build & Deploy Site
runs-on: ubuntu-latest
container:
image: rocker/tidyverse:latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Render Quarto Project
run: quarto render --output-dir _site
shell: bash
- name: Publish Site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
keep_files: true
broken_link_checker_job:
runs-on: ubuntu-latest
needs: publish
name: Check for broken links
steps:
- name: Check for broken links
id: link-report
uses: celinekurpershoek/[email protected]
with:
# Required:
url: "https://phuse-org.github.io/devops/"
# optional:
honorRobotExclusions: false
ignorePatterns: "github,google"
recursiveLinks: false # Check all URLs on all reachable pages (could take a while)
- name: Get the result
run: echo "${{steps.link-report.outputs.result}}"