-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from cloudyspells/feature/wiki
First wiki workflow
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |