Skip to content

Regenerate kfunc references #218

Regenerate kfunc references

Regenerate kfunc references #218

name: Deploy GH pages
on:
# Run on push or merge to master
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
USER: runner
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-gh-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # Important for the committers plugin
- name: Cache plugin data
id: cache-plugins
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .cache
key: cache-plugins-${{ github.run_id }}
restore-keys: |
cache-plugins-
- name: Apply deploy config
run: |
echo "" >> mkdocs.yml
echo "site_url: https://docs.ebpf.io" >> mkdocs.yml
echo "" >> mkdocs.yml
echo "extra:" >> mkdocs.yml
echo " analytics:" >> mkdocs.yml
echo " provider: google" >> mkdocs.yml
echo " property: G-KVJ1CK539N" >> mkdocs.yml
- name: Build html
run: |
make html PROD=true GH_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: Setup Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
# Upload the `out` directory
path: './out'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0