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

azure-pipelines: Add web build task to package.yml #1591

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions azure-pipelines/templates/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,33 @@ steps:
workingDir: $(working_directory)

- task: CopyFiles@2
displayName: "Copy package to staging directory"
displayName: "Copy packages and vsix to staging directory"
inputs:
Contents: |
**/*.vsix
**/*.tar.gz
**/*.tgz
TargetFolder: "$(build.artifactstagingdirectory)"
TargetFolder: "$(build.artifactstagingdirectory)/build"
condition: and(eq(variables['Agent.OS'], 'Linux'), ne(variables['System.PullRequest.IsFork'], 'True'))

- task: PublishBuildArtifacts@1
displayName: "Publish artifacts: package"
displayName: "Publish artifacts: packages and vsix"
inputs:
PathtoPublish: "$(build.artifactstagingdirectory)"
PathtoPublish: "$(build.artifactstagingdirectory)/build"
ArtifactName: $(artifact_name)
condition: and(eq(variables['Agent.OS'], 'Linux'), ne(variables['System.PullRequest.IsFork'], 'True'))

- task: CopyFiles@2
displayName: "Copy web to staging directory"
inputs:
Contents: |
dist/web/*.js*
bwateratmsft marked this conversation as resolved.
Show resolved Hide resolved
package.json
package.nls.json
resources/**
TargetFolder: "$(build.artifactstagingdirectory)/web"
condition: and(eq(variables['Agent.OS'], 'Windows_NT'), ne(variables['System.PullRequest.IsFork'], 'True'), eq(variables['WEB_BUILDS_ENABLED'], true))

- task: AzureFileCopy@4
# If AzureFileCopy ever supports not using account keys we should consider making use of it.
# If we do, we should also consider moving to user delegatation SAS in the generate SAS step.
Expand Down
Loading