Skip to content

build(deps): Bump shell-quote from 1.8.3 to 1.8.4 in /docs #16786

build(deps): Bump shell-quote from 1.8.3 to 1.8.4 in /docs

build(deps): Bump shell-quote from 1.8.3 to 1.8.4 in /docs #16786

Workflow file for this run

name: Deploy documentation
on:
push:
merge_group:
pull_request_target:
# this is for forked pull requests - we can't pass down secrets; this allows us to pass down secrets
# to build the cloudflare pages action
types:
- opened
- labeled
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
if: ${{
github.repository == 'kurtosis-tech/kurtosis' &&
(
github.event_name == 'push' ||
github.event_name == 'merge_group' ||
(
github.event_name == 'pull_request_target' &&
github.event.action == 'labeled' &&
github.event.pull_request.head.repo.fork == true &&
contains(github.event.label.name, 'request-cf-deploy')
))
}}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Enforce to use yarn
run: |
# We had a bug where we were using both Yarn and NPM to maintain Docusaurus, which
# meant separate and conflicting lockfiles
# Only Yarn should be used
if [ -f docs/package-lock.json ]; then
exit 1
fi
- name: Docs have changed
run: |
echo "DOCS_CHANGED=$(git --no-pager diff --exit-code origin/main...HEAD -- ':docs' > /dev/null; echo $?)" >> $GITHUB_OUTPUT
id: docs-diff
- name: Append changelog
run: cat CHANGELOG.md >> docs/docs/changelog.md
if: github.ref == 'refs/heads/main' || steps.docs-diff.outputs.DOCS_CHANGED != 0
- name: Yarn Install
run: yarn --cwd ./docs --frozen-lockfile install
if: github.ref == 'refs/heads/main' || steps.docs-diff.outputs.DOCS_CHANGED != 0
- name: Yarn Build
run: yarn --cwd ./docs build
if: github.ref == 'refs/heads/main' || steps.docs-diff.outputs.DOCS_CHANGED != 0
- name: Publish to Cloudflare Pages
if: github.ref == 'refs/heads/main' || steps.docs-diff.outputs.DOCS_CHANGED != 0
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
DEPLOY_COMMIT_MSG: ${{ github.event.head_commit.message || github.sha }}
run: npx --yes wrangler pages deploy docs/build/ --project-name=${{ secrets.CLOUDFLARE_PROJECT_NAME }} --branch=${GITHUB_REF##*/} --commit-message="${DEPLOY_COMMIT_MSG%%$'\n'*}" --commit-dirty=true
reindex-website-main:
runs-on: ubuntu-latest
name: Update website search index via Algolia Crawler
if: ${{
github.event_name == 'push' &&
github.ref == 'refs/heads/main'
}}
steps:
- uses: fjogeleit/http-request-action@551353b829c3646756b2ec2b3694f819d7957495 # v2.0.0
with:
url: "https://crawler.algolia.com/api/1/crawlers/${{ secrets.ALGOLIA_CRAWLER_ID }}/reindex"
method: "POST"
username: ${{ secrets.ALGOLIA_CRAWLER_USER_ID }}
password: ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}
customHeaders: '{"Content-Type": "application/json"}'
needs: publish