Skip to content

Commit

Permalink
trigger partial docs build on push
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux authored and rwinch committed Nov 11, 2022
1 parent ef8c4d8 commit b5bd52c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 46 deletions.
5 changes: 0 additions & 5 deletions .github/actions/dispatch.sh

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/antora-generate.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Docs
on:
push:
branches-ignore: [ gh-pages ]
tags: '**'
repository_dispatch:
types: request-build-reference # legacy
schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC
workflow_dispatch:
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects'
env:
DOCS_BUILD_BRANCH: docs-build
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: $DOCS_BUILD_BRANCH
fetch-depth: 1
- name: Dispatch (partial build)
if: github.ref_type == 'branch'
env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: gh workflow run deploy-docs.yml -r $DOCS_BUILD_BRANCH -f build-refname=${{ github.ref_name }}
- name: Dispatch (full build)
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: gh workflow run deploy-docs.yml -r $DOCS_BUILD_BRANCH

0 comments on commit b5bd52c

Please sign in to comment.