Skip to content

Commit 9aab7b1

Browse files
committed
Simpler docs build
1 parent 11cda4b commit 9aab7b1

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
name: Deploy Docs
2-
run-name: ${{ format('{0} ({1})', github.workflow, github.event.inputs.build-refname || 'all') }}
32
on:
4-
workflow_dispatch:
5-
inputs:
6-
build-refname:
7-
description: Enter git refname to build (e.g., main).
8-
required: false
93
push:
104
branches: [ docs-build ]
5+
workflow_dispatch:
116
permissions:
127
contents: write
138
jobs:
@@ -25,14 +20,6 @@ jobs:
2520
java-version: '25'
2621
distribution: 'liberica'
2722
cache: maven
28-
- name: Set up refname build
29-
if: github.event.inputs.build-refname != 'all'
30-
run: |
31-
git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY "$BUILD_REFNAME"
32-
export BUILD_REFNAME=${{ github.event.inputs.build-refname }}
33-
echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV
34-
export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")
35-
echo BUILD_VERSION=$BUILD_VERSION >> $GITHUB_ENV
3623
- name: Run Antora
3724
run: |
3825
./build-docs.sh

0 commit comments

Comments
 (0)