@@ -17,7 +17,7 @@ name: GitHub Pages
1717
1818on :
1919 push :
20- branches :
20+ branches :
2121 - main
2222 - rhdh-1.**
2323 - 1.**.x
@@ -41,14 +41,15 @@ jobs:
4141 run : |
4242 # update
4343 sudo apt-get update -y || true
44- # install
44+ # install
4545 sudo apt-get -y -q install asciidoctor && asciidoctor --version
46+ sudo apt-get -y -q install podman && podman --version
4647 echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
4748
4849 - name : Build guides and indexes
4950 run : |
5051 echo "Building branch ${{ env.GIT_BRANCH }}"
51- build/scripts/build.sh -b ${{ env.GIT_BRANCH }}
52+ build/scripts/build-ccutil .sh -b ${{ env.GIT_BRANCH }}
5253
5354 # repo must be public for this to work
5455 - name : Deploy
6061 keep_files : true
6162 publish_dir : ./titles-generated
6263
63- - name : Cleanup merged PR branches
64+ - name : Cleanup merged PR branches
6465 run : |
6566 PULL_URL="https://api.github.com/repos/redhat-developer/red-hat-developers-documentation-rhdh/pulls"
6667 GITHUB_TOKEN="${{ secrets.RHDH_BOT_TOKEN }}"
7071 git checkout gh-pages; git pull || true
7172 dirs=$(find . -maxdepth 1 -name "pr-*" -type d | sed -r -e "s|^\./pr-||")
7273 refs=$(cat pulls.html | grep pr- | sed -r -e "s|.+.html>pr-([0-9]+)</a>.+|\1|")
73- for d in $(echo -e "$dirs\n$refs" | sort -uV); do
74+ for d in $(echo -e "$dirs\n$refs" | sort -uV); do
7475 PR="${d}"
7576 echo -n "Check merge status of PR $PR ... "
7677 PR_JSON=$(curl -sSL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $GITHUB_TOKEN" "$PULL_URL/$PR")
0 commit comments