-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (47 loc) · 2.06 KB
/
Copy pathRelease.yml
File metadata and controls
49 lines (47 loc) · 2.06 KB
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
48
49
name: Publish PowerShell Module
on:
release:
types: [published]
jobs:
publish-to-gallery:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
- name: Set PSRepository to Trusted for PowerShell Gallery
shell: pwsh
run: |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
- name: Install DBAtools module
shell: pwsh
run: |
Install-Module -Name dbatools -Repository PSGallery -Force
- name: Install AsBuiltReport.Core module
shell: pwsh
run: |
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force
- name: Install AsBuiltReport.Chart module
shell: pwsh
run: |
Install-Module -Name AsBuiltReport.Chart -Repository PSGallery -Force
- name: Install AsBuiltReport.Diagram module
shell: pwsh
run: |
Install-Module -Name AsBuiltReport.Diagram -Repository PSGallery -Force
- name: Test Module Manifest
shell: pwsh
run: |
Test-ModuleManifest .\AsBuiltReport.Microsoft.Windows\AsBuiltReport.Microsoft.Windows.psd1
- name: Publish module to PowerShell Gallery
shell: pwsh
run: |
Publish-Module -Path ./AsBuiltReport.Microsoft.Windows -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
bsky-post:
needs: publish-to-gallery
runs-on: ubuntu-latest
steps:
- uses: zentered/bluesky-post-action@v0.4.0
with:
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #Microsoft #Windows #AsBuiltReport #PowerShell #MVPBuzz"
env:
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}