update to have playing rules separate docx

This commit is contained in:
2026-04-26 11:24:44 -05:00
parent a4d575c07e
commit 55554f25c0

View File

@@ -87,6 +87,7 @@ jobs:
OUT_DIR="${RUNNER_TEMP}/pandoc"
OUT_FILE="${GITHUB_REF_NAME}-${SHORT_SHA}.docx"
PLAYING_RULES_OUT_FILE="${GITHUB_REF_NAME}-${SHORT_SHA}-playing-rules.docx"
echo "SHORT_SHA=`echo ${SHORT_SHA}`" >> $GITHUB_ENV
mkdir -p "${OUT_DIR}"
@@ -109,6 +110,16 @@ jobs:
echo "Pandoc output written to ${OUT_DIR}/${OUT_FILE}"
echo "Generating ${PLAYING_RULES_OUT_FILE}"
pandoc \
docs/03-playing-rules.md \
--shift-heading-level-by=-1 \
--number-sections \
-o "${OUT_DIR}/${PLAYING_RULES_OUT_FILE}"
echo "Pandoc output written to ${OUT_DIR}/${PLAYING_RULES_OUT_FILE}"
- name: Zip offline site
run: |
set -euo pipefail
@@ -140,6 +151,7 @@ jobs:
files: |
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}.docx
${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}-playing-rules.docx
- name: Publish release
if: startsWith(github.ref_name, 'v')
@@ -150,6 +162,8 @@ jobs:
body_path: ${{ runner.temp }}/release-notes.md
files: |
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}.docx
${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}-playing-rules.docx
- name: Checkout gh-pages branch
uses: actions/checkout@v4