Network 25375 - The tenant holds the licenses required to operate Glo… #345
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: Build and Publish PowerShell Module (Preview) | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - 'src/powershell/**' | |
| workflow_dispatch: | |
| jobs: | |
| build-and-publish: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install Prerequisites | |
| run: .\build\powershell\Install-Prerequisites.ps1 | |
| shell: pwsh | |
| - name: Build PowerShell Module (Preview) | |
| run: | | |
| .\build\powershell\Build-PSModule.ps1 -BaseDirectory $PWD | |
| shell: pwsh | |
| - name: Publish PowerShell Module (Preview) | |
| run: | | |
| $secureApiKey = ConvertTo-SecureString -String $env:NUGET_API_KEY -AsPlainText -Force | |
| .\build\powershell\Publish-PSModule.ps1 -NuGetApiKey $secureApiKey | |
| shell: pwsh | |
| env: | |
| NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} |