Skip to content

Commit

Permalink
🚀 Refactor job / task layout (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
vexx32 committed Sep 25, 2019
1 parent 9d046f5 commit d8fa6ca
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- template: templates/environment-setup.yml
- template: templates/build-steps.yml

- job: TestPublishModule
displayName: "Publish Module Nupkg"
- job: Publish
displayName: "Publish Build"
dependsOn:
- Linux
- Windows
Expand Down Expand Up @@ -79,26 +79,9 @@ jobs:
path: '$(NupkgPath)'
artifact: PSKoans.nupkg

- job: PublishModule
displayName: "Publish Module to PSGallery"
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
dependsOn:
- Linux
- Windows
- MacOS
pool:
vmImage: ubuntu-latest

steps:
- template: templates/environment-setup.yml
- task: DownloadPipelineArtifact@2
displayName: 'Download Built Module Artifact'
inputs:
artifact: PSKoans
path: '$(System.DefaultWorkingDirectory)/Deploy/PSGallery/PSKoans'

- task: PowerShell@2
displayName: 'Deploy to PowerShell Gallery'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))

inputs:
targetType: 'filePath'
Expand Down

0 comments on commit d8fa6ca

Please sign in to comment.