Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/notify-site-rebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Ask the website to rebuild when release-branch docs change.
#
# The website (apache/incubator-texera-site) no longer stores docs in-tree.
# Its build pulls each release's docs/ folder straight from this repo's
# release/vX.Y branches at Hugo build time (scripts/sync-docs.sh). This repo
# therefore does not push any docs; it only needs to nudge the site to rebuild
# so a docs edit becomes visible without waiting for the next unrelated site
# commit.
#
# This fires the site's existing "Build & Publish Hugo site" workflow via its
# workflow_dispatch trigger, targeting the staging branch (the staged site).
#
# Requires a secret SITE_DISPATCH_TOKEN with Actions: write on
# apache/incubator-texera-site (a fine-grained PAT scoped to that repo, or a
# classic PAT with the workflow scope). The ping is best-effort and never fails
# the workflow.

name: Notify website to rebuild docs

on:
push:
branches:
- 'release/v*'
paths:
- 'docs/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: notify-site-rebuild
cancel-in-progress: false

jobs:
notify:
# Only the canonical repo holds the token; skip on forks.
if: github.repository == 'apache/texera'
runs-on: ubuntu-latest
steps:
- name: Trigger the site's publish workflow (staging)
continue-on-error: true
env:
GH_TOKEN: ${{ secrets.SITE_DISPATCH_TOKEN }}
run: |
gh workflow run publish-site.yml \
--repo apache/incubator-texera-site \
--ref staging
202 changes: 0 additions & 202 deletions .github/workflows/sync-docs-to-site.yml

This file was deleted.

Loading