-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.29 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Publish automatically generated documentation to wiki
on:
release:
types: [created]
jobs:
build:
# Job name is Greeting
name: Publish wiki
# This job runs on Linux
runs-on: ubuntu-latest
container: mcr.microsoft.com/powershell:7.2.1-ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate default alert rule documentation
run: ./misc/GenerateDefaultAlertDocMd.ps1 -OutPath ./wiki/default-alert-rules.md
shell: pwsh
- name: Generate documentation
run: ./misc/GenerateModuleDocumentation.ps1 -OutPath ./wiki/
shell: pwsh
- name: Upload documentation to wiki
uses: docker://decathlon/wiki-page-creator-action:2.0.1
env:
ACTION_MAIL: [email protected]
ACTION_NAME: CI
GH_PAT: ${{ secrets.GH_PAT }}
MD_FOLDER: wiki
OWNER: by-pinja
REPO_NAME: Pinja.Azure.Alerts
- name: Install curl
run: apt update && apt install curl -y
shell: bash
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
- name: Publish to PS gallery
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: pwsh
run: .\Publish.ps1 -NuGetApiKey $env:NUGET_KEY -Verbose