Merge pull request #10 from robinmalik/development #6
This file contains 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 Module | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
publish-to-gallery: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and publish | |
env: | |
NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
shell: pwsh | |
run: | | |
echo "The current path is: $($pwd.path)" | |
Publish-Module -Path "./Source" -NuGetApiKey $env:NUGET_KEY -Verbose |