From 0f21f9d95d614a95f07537c82575da828ff3c3b0 Mon Sep 17 00:00:00 2001 From: Roderick Bant <13252390+webtonize@users.noreply.github.com> Date: Wed, 15 Mar 2023 17:37:20 +0000 Subject: [PATCH] First wiki workflow --- .github/workflows/wiki.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/wiki.yml diff --git a/.github/workflows/wiki.yml b/.github/workflows/wiki.yml new file mode 100644 index 0000000..d04a215 --- /dev/null +++ b/.github/workflows/wiki.yml @@ -0,0 +1,43 @@ +# File: .github/workflows/wiki.yml + +on: + workflow_dispatch: + +name: Publish Wiki + +jobs: + build-publish-wiki: + runs-on: ubuntu-22.04 + steps: + - name: Checkout PSWattTime + uses: actions/checkout@v3 + with: + path: main + + - name: Checkout Wiki + uses: actions/checkout@v3 + with: + repository: cloudyspells/PSWattTime.wiki + path: wiki + + - name: Copy README.md as quickstart.md + shell: bash + run: | + cp ./main/README.md ./wiki/quickstart.md + + - name: Generate Module docs + shell: pwsh + run: | + Install-Module PlatyPS + Import-Module PlatyPS + Import-Module ./main/src/PSWattTime + New-MarkdownHelp -Module PSWattTime -Force -OutputFolder ./wiki/ + + - name: Commit and push changes to wiki + shell: bash + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "generated docs from actions workflow" + git push