]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: add support for regenerating dracut.html when making a release
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Fri, 5 Apr 2024 10:17:58 +0000 (06:17 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 5 Apr 2024 16:11:59 +0000 (12:11 -0400)
.github/workflows/release.yml
tools/release.sh

index 0b1e1223a1f076a75609d27d3c7ec6f05556e5b6..8e6eb3c8a9b91716e8b290486d5705a9733239b7 100644 (file)
@@ -22,6 +22,11 @@ jobs:
         with:
           fetch-depth: 0
 
+      - name: Install dependencies
+        run: |
+          sudo apt -y update
+          sudo apt -y install asciidoc
+
       - name: Build
         run: bash ${GITHUB_WORKSPACE}/tools/release.sh ${{ inputs.tag }}
 
index d6eafb738a334eaaa32fb47e4d262066b19cdcb3..472aa22467e6d140964c57ea97e3afacfe42884a 100755 (executable)
@@ -50,6 +50,8 @@ cat -s NEWS_body_new.md CONTRIBUTORS.md > release.md
 # dracut-version.sh
 printf "#!/bin/sh\n# shellcheck disable=SC2034\nDRACUT_VERSION=%s\n" "$NEW_VERSION" > dracut-version.sh
 
+make dracut.html
+
 if [ -z "$(git config --get user.name)" ]; then
     git config user.name "dracutng[bot]"
 fi
@@ -59,7 +61,7 @@ if [ -z "$(git config --get user.email)" ]; then
 fi
 
 # Check in AUTHORS and NEWS.md
-git commit -m "docs: update NEWS.md and AUTHORS" NEWS.md AUTHORS dracut-version.sh
+git commit -m "docs: update NEWS.md and AUTHORS" NEWS.md AUTHORS dracut-version.sh dracut.html
 
 # git push can fail due to insufficient permissions
 if ! git push -u origin release; then