Skip to content

fix(webhook): Force apply the CRD in the CRD maintainer (#1116) #138

fix(webhook): Force apply the CRD in the CRD maintainer (#1116)

fix(webhook): Force apply the CRD in the CRD maintainer (#1116) #138

Workflow file for this run

---
name: Publish Crate Docs
# Once the `preview` input is available, this can also run on PR when docs are
# changed.
on:
push:
branches:
- main
paths:
- .github/workflows/publish-docs.yml
- crates/**
env:
RUST_TOOLCHAIN_VERSION: "1.89.0"
permissions: {}
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
- name: Build Crate Docs
run: cargo doc --no-deps --all-features
- name: Add Redirect
run: echo '<meta http-equiv="refresh" content="0;url=stackable_operator/index.html">' > target/doc/index.html
- name: Upload Documentation Artifacts
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: target/doc
publish-docs:
runs-on: ubuntu-latest
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Deploy to Github Pages
id: deploy
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5