From c7cdd98347380c34b65604b5f17d7ad6c81f10da Mon Sep 17 00:00:00 2001 From: eclipse-cdt-bot <44898092+eclipse-cdt-bot@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:42:13 +0200 Subject: [PATCH] Updating file '.github/workflows/build-page.yml' with otterdog. --- .github/workflows/build-page.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-page.yml b/.github/workflows/build-page.yml index e4500b7..bb8edf9 100644 --- a/.github/workflows/build-page.yml +++ b/.github/workflows/build-page.yml @@ -67,15 +67,21 @@ jobs: cp -r ../${{ github.repository_owner }}/otterdog/* orgs/${{ github.repository_owner }} working-directory: otterdog-configs + - name: Generate current configuration as markdown + run: ../otterdog/otterdog.sh show ${{ github.repository_owner }} -c otterdog.json --markdown --output-dir generated-site + working-directory: otterdog-configs + - name: Generate default configuration as markdown run: ../otterdog/otterdog.sh show-default ${{ github.repository_owner }} -c otterdog.json --markdown > default.txt working-directory: otterdog-configs - - name: Upload default text snippet + - name: Upload generated site content uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3 with: - name: default-text - path: otterdog-configs/default.txt + name: generated-site + path: | + otterdog-configs/default.txt + otterdog-configs/generated-site/ build-page: runs-on: ubuntu-latest @@ -85,10 +91,11 @@ jobs: - name: Download default-text uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3 with: - name: default-text + name: generated-site - shell: bash run: | cat default.txt >> ./docs/index.md + cp generated-site/*.md ./docs/ - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 with: python-version: 3.x