-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.27 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
name: Publish automatically generated documentation to wiki
on:
push:
tags:
- '*'
jobs:
build:
name: Publish wiki
runs-on: ubuntu-latest
container: mcr.microsoft.com/powershell:7.4-ubuntu-20.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: '8.0'
- name: Publish to PS gallery
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: pwsh
run: .\Publish.ps1 -NuGetApiKey $env:NUGET_KEY -Verbose