Publish PowerShell Script #18
This file contains hidden or 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
| name: Publish PowerShell Script | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test-and-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Publish to PowerShell Gallery | |
| shell: pwsh | |
| run: | | |
| $env:PSGalleryApiKey = "${{ secrets.NUGET_KEY }}" | |
| Publish-Script -Path ./IntuneAssignmentChecker.ps1 -Repository PSGallery -NuGetApiKey $env:PSGalleryApiKey |