update to have playing rules separate docx
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -87,6 +87,7 @@ jobs:
|
|||||||
|
|
||||||
OUT_DIR="${RUNNER_TEMP}/pandoc"
|
OUT_DIR="${RUNNER_TEMP}/pandoc"
|
||||||
OUT_FILE="${GITHUB_REF_NAME}-${SHORT_SHA}.docx"
|
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
|
echo "SHORT_SHA=`echo ${SHORT_SHA}`" >> $GITHUB_ENV
|
||||||
|
|
||||||
mkdir -p "${OUT_DIR}"
|
mkdir -p "${OUT_DIR}"
|
||||||
@@ -109,6 +110,16 @@ jobs:
|
|||||||
|
|
||||||
echo "Pandoc output written to ${OUT_DIR}/${OUT_FILE}"
|
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
|
- name: Zip offline site
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -140,6 +151,7 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
|
${{ 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 }}.docx
|
||||||
|
${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}-playing-rules.docx
|
||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: startsWith(github.ref_name, 'v')
|
if: startsWith(github.ref_name, 'v')
|
||||||
@@ -150,6 +162,8 @@ jobs:
|
|||||||
body_path: ${{ runner.temp }}/release-notes.md
|
body_path: ${{ runner.temp }}/release-notes.md
|
||||||
files: |
|
files: |
|
||||||
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
|
${{ 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
|
- name: Checkout gh-pages branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user