Skip to content

chore: Remove product-config and product_config_utils (#1252) #243

chore: Remove product-config and product_config_utils (#1252)

chore: Remove product-config and product_config_utils (#1252) #243

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.95.0"
permissions: {}
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Install rust toolchain
run: |
rustup toolchain install "${RUST_TOOLCHAIN_VERSION}"
rustup default "${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@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.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@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0