fix: trimming all commit messages to a single line (#432) #129
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: docs | |
on: | |
pull_request: | |
paths: | |
- "docs/**" | |
- "mkdocs.yml" | |
push: | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
paths: | |
- "docs/**" | |
- "mkdocs.yml" | |
workflow_dispatch: | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: docker pull squidfunk/mkdocs-material | |
- name: Build | |
run: docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build | |
- name: HTML Test | |
uses: wjdp/htmltest-action@master | |
with: | |
path: site | |
config: htmltest.yml | |
- name: Patch mkdocs.yml Site URL | |
if: ${{ startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch') }} | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: 'site_url: ""' | |
replace: 'site_url: "https://upliftci.dev"' | |
regex: false | |
include: mkdocs.yml | |
- name: Patch mkdocs.yml Edit URI | |
if: ${{ startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch') }} | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: 'edit_uri: ""' | |
replace: 'edit_uri: "edit/main/docs"' | |
regex: false | |
include: mkdocs.yml | |
- name: Deploy documentation | |
if: ${{ startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch') }} | |
run: docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy --force |