Skip to content

Commit a7b2fa7

Browse files
committed
Update release workflow
- Add testing of module manifest to PS Gallery workflow - Add PS Gallery workflow dependency for tweet action
1 parent 295420f commit a7b2fa7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/Release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
publish-to-gallery:
9-
runs-on: ubuntu-latest
9+
runs-on: windows-2019
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Set PSRepository to Trusted for PowerShell Gallery
@@ -17,11 +17,16 @@ jobs:
1717
shell: pwsh
1818
run: |
1919
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force
20+
- name: Test Module Manifest
21+
shell: pwsh
22+
run: |
23+
Test-ModuleManifest .\AsBuiltReport.VMware.vSphere.psd1
2024
- name: Publish module to PowerShell Gallery
2125
shell: pwsh
2226
run: |
2327
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
2428
tweet:
29+
needs: publish-to-gallery
2530
runs-on: ubuntu-latest
2631
steps:
2732
- uses: Eomm/why-don-t-you-tweet@v1

0 commit comments

Comments
 (0)