Skip to content

Commit

Permalink
Added PS Gallery publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-pipelines-bot committed Feb 8, 2024
1 parent 718a306 commit 406d8e7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
19 changes: 19 additions & 0 deletions azure-pipelines-steps-module-publish.yml
@@ -0,0 +1,19 @@
steps:
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
# npm install
- task: Npm@1
displayName: npm install for powershell
inputs:
command: install
workingDir: powershell

- script: node make.js build
displayName: node make.js build
workingDirectory: powershell
- task: PowerShell@2
inputs:
workingDirectory: powershell
filePath: './powershell/publish.ps1'
arguments: '-ApiKey $(PSGalleryApiKey)'
pwsh: true

1 change: 1 addition & 0 deletions azure-pipelines.yml
Expand Up @@ -22,6 +22,7 @@ jobs:
nodeVersion: $(nodeVersion)

- template: azure-pipelines-steps-test-build.yml
- template: azure-pipelines-steps-module-publish.yml

#################################################
- job: linux
Expand Down
23 changes: 0 additions & 23 deletions ci/powershell/publish-job.yml

This file was deleted.

0 comments on commit 406d8e7

Please sign in to comment.