fix: add PSGallery before push

This commit is contained in:
Jan De Dobbeleer 2020-10-30 14:31:40 +01:00 committed by Jan De Dobbeleer
parent 58a03f1c97
commit a354e72d84

View file

@ -91,4 +91,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Pack and push
run: ./deploy.ps1 -BinVersion ${{ needs.release.outputs.version }} -ModuleVersion ${{ needs.release.outputs.version }} -Repository PSGallery -RepositoryAPIKey $env:PSGALLERY_KEY
run: |
Register-PSRepository -Default -ErrorAction SilentlyContinue
./deploy.ps1 -BinVersion ${{ needs.release.outputs.version }} -ModuleVersion ${{ needs.release.outputs.version }} -Repository PSGallery -RepositoryAPIKey $env:PSGALLERY_KEY