ci(deps): update gohugoio/hugo action to v0.147.5 #2921
This file contains hidden or 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: Markdown slides build and deploy | |
on: | |
push: | |
branches-ignore: | |
- 'renovate/**' | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- 'LICENSE' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-slides: | |
concurrency: | |
group: markdown-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout | |
uses: danysk/[email protected] | |
- name: Compute the version of Hugo | |
id: hugo | |
shell: bash | |
run: | | |
USES=$(cat <<TRICK_RENOVATE | |
- uses: gohugoio/[email protected] | |
TRICK_RENOVATE | |
) | |
echo "Computed version: \"${USES#*@v}\"" | |
echo "::set-output name=version::${USES#*@v}" | |
- name: Download Hugo | |
run: | | |
HUGO_VERSION="${{ steps.hugo.outputs.version }}" | |
URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb" | |
wget --retry-connrefused --waitretry=1 --read-timeout=20 "$URL" --output-document=hugo.deb | |
- name: Install Hugo | |
run: sudo dpkg -i hugo.deb | |
- name: Remove Hugo Installer | |
run: rm hugo.deb | |
- name: Setup Ruby | |
uses: ruby/[email protected] | |
with: | |
working-directory: slides-markdown/shared-slides | |
- name: Run the pre-processor | |
working-directory: slides-markdown | |
run: shared-slides/preprocess.rb | |
- name: Build slides with hugo | |
working-directory: slides-markdown | |
run: hugo | |
- name: Install Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: package.json | |
- name: Transform and Inline Mermaid charts | |
uses: cric96/[email protected] | |
with: | |
root-folder: slides-markdown/build | |
config-file: slides-markdown/config.toml | |
- name: Deploy | |
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }} | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: slides-markdown/build |