Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PS Gallery publish steps #1018

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.