File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed
Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,40 @@ name: Deploy mkdocs to github pages
22
33on :
44 push :
5- branches :
6- - main
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ env :
12+ GO_VERSION : 1.24.1
13+ MUFFET_VERSION : v2.10.7
714
815jobs :
16+ check-links :
17+ name : Check links
18+ runs-on : ubuntu-22.04
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v4
22+ - uses : actions/setup-go@v2
23+ with :
24+ go-version : ${{ env.GO_VERSION }}
25+ - name : Start development server
26+ run : ./preview.sh
27+ - name : Add $GOPATH/bin to $PATH
28+ run : |
29+ echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
30+ - name : Install muffet
31+ run : go install github.com/raviqqe/muffet/v2@${MUFFET_VERSION}
32+ - name : Check links
33+ run : muffet -t60 -c10 -f -i 'http://127*' -i 'http://localhost' http://127.0.0.1:8000
934 deploy :
1035 runs-on : ubuntu-latest
36+ needs :
37+ - check-links
38+ if : github.ref == 'refs/heads/main'
1139 steps :
1240 - uses : actions/checkout@v4
1341 with :
You can’t perform that action at this time.
0 commit comments