Skip to content

chore(deps): update gohugoio/hugo action to v0.136.5 #476

chore(deps): update gohugoio/hugo action to v0.136.5

chore(deps): update gohugoio/hugo action to v0.136.5 #476

Workflow file for this run

name: Build and deploy
on:
push:
paths:
- 'docs/**'
- '.github/workflows/publish-doc.yaml'
pull_request:
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
jobs:
Build-Deploy-Slides:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: DanySK/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
Build-Documentation-Site:
runs-on: ubuntu-latest
concurrency:
group: slides-${{ github.ref }}
cancel-in-progress: false
steps:
- 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 "Scripts update line: \"$USES\""
echo "Computed version: \"${USES#*@v}\""
echo "version=${USES#*@v}" >> "$GITHUB_OUTPUT"
- 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: Build slides with hugo
run: |
cd docs/site
hugo
- name: Deployment
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
publish_dir: ./docs/site/public