Skip to content

docs: add robots.txt with sitemap for search-engine indexing (#620) #3

docs: add robots.txt with sitemap for search-engine indexing (#620)

docs: add robots.txt with sitemap for search-engine indexing (#620) #3

Workflow file for this run

name: Docs
on:
push:
branches: [main]
paths:
- 'content/**'
- 'static/**'
- 'layouts/**'
- 'themes/**'
- 'hugo.toml'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment; don't cancel an in-progress production deploy.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.159.0
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Hugo (extended)
run: |
curl -sSL -o /tmp/hugo.deb \
"https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb"
sudo dpkg -i /tmp/hugo.deb
- uses: actions/configure-pages@v5
- name: Build site
run: hugo --minify --gc
- uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4