2022-09-08 15:31:19 -06:00
|
|
|
name: Deploy Docs
|
|
|
|
on:
|
2022-11-21 17:49:18 -07:00
|
|
|
push:
|
2023-09-29 14:25:22 -03:00
|
|
|
branches-ignore:
|
|
|
|
- "gh-pages"
|
|
|
|
- "dependabot/**"
|
2022-11-21 17:49:18 -07:00
|
|
|
tags: '**'
|
2022-09-12 15:21:34 -06:00
|
|
|
repository_dispatch:
|
|
|
|
types: request-build-reference # legacy
|
2023-01-06 16:18:56 -07:00
|
|
|
#schedule:
|
|
|
|
#- cron: '0 10 * * *' # Once per day at 10am UTC
|
2022-09-08 15:31:19 -06:00
|
|
|
workflow_dispatch:
|
2022-09-12 15:21:34 -06:00
|
|
|
permissions: read-all
|
2022-09-08 15:31:19 -06:00
|
|
|
jobs:
|
2022-09-12 15:21:34 -06:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'spring-projects'
|
2022-09-08 15:31:19 -06:00
|
|
|
steps:
|
2022-09-12 15:21:34 -06:00
|
|
|
- name: Checkout
|
2023-12-14 11:47:52 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-09-12 15:21:34 -06:00
|
|
|
with:
|
|
|
|
ref: docs-build
|
|
|
|
fetch-depth: 1
|
2022-11-10 16:58:17 -07:00
|
|
|
- name: Dispatch (partial build)
|
|
|
|
if: github.ref_type == 'branch'
|
2022-09-12 15:21:34 -06:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
2022-11-10 20:50:43 -07:00
|
|
|
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
|
2022-11-10 16:58:17 -07:00
|
|
|
- name: Dispatch (full build)
|
|
|
|
if: github.ref_type == 'tag'
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
2022-11-10 20:50:43 -07:00
|
|
|
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)
|