Skip to content

Commit 13bafbd

Browse files
committed
Add deploy docs GH actions
1 parent 48fad96 commit 13bafbd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy Docs
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [main, '[0-9].[0-9].x' ]
6+
tags: ['v[0-9].[0-9].[0-9]', 'v[0-9].[0-9].[0-9]-*']
7+
permissions:
8+
actions: write
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
if: github.repository_owner == 'spring-projects-experimental'
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
ref: docs-build
18+
fetch-depth: 1
19+
- name: Dispatch (partial build)
20+
if: github.ref_type == 'branch'
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
24+
- name: Dispatch (full build)
25+
if: github.ref_type == 'tag'
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)

0 commit comments

Comments
 (0)