Skip to content

Commit

Permalink
Merge pull request #17 from cloudyspells/feature/wiki
Browse files Browse the repository at this point in the history
First wiki workflow
  • Loading branch information
webtonize authored Mar 15, 2023
2 parents 685bba2 + 0f21f9d commit 371664a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
git add .
git commit -m "generated docs from actions workflow"
git push

0 comments on commit 371664a

Please sign in to comment.