microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.ci/nightly.yml
43lines · modecode
| 1 | trigger: none |
| 2 | pr: none |
| 3 | resources: |
| 4 | repositories: |
| 5 | - repository: 1ESPipelineTemplates |
| 6 | type: git |
| 7 | name: 1ESPipelineTemplates/1ESPipelineTemplates |
| 8 | ref: refs/tags/release |
| 9 | extends: |
| 10 | template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates |
| 11 | parameters: |
| 12 | pool: |
| 13 | name: VSWebDiag1ESPipelinePool |
| 14 | image: VSWebDiag_1ESImage_Windows |
| 15 | os: windows |
| 16 | customBuildTags: |
| 17 | - ES365AIMigrationTooling |
| 18 | stages: |
| 19 | - stage: stage |
| 20 | jobs: |
| 21 | - job: nightly_release |
| 22 | displayName: Nightly Release |
| 23 | templateContext: |
| 24 | outputs: |
| 25 | - output: pipelineArtifact |
| 26 | displayName: "Publish artifacts: Nightly Extension" |
| 27 | targetPath: "$(Build.ArtifactStagingDirectory)" |
| 28 | artifactName: "Extension (nightly)" |
| 29 | steps: |
| 30 | - template: /.ci/common-validation.yml@self |
| 31 | - bash: npx gulp release --nightly |
| 32 | displayName: "gulp release" |
| 33 | - task: CopyFiles@2 |
| 34 | displayName: "Copy Files to: $(Build.ArtifactStagingDirectory)" |
| 35 | inputs: |
| 36 | Contents: | |
| 37 | *.vsix |
| 38 | TargetFolder: "$(Build.ArtifactStagingDirectory)" |
| 39 | - bash: | |
| 40 | VSIX=`ls *.vsix` |
| 41 | npx vsce publish --pat $(extension-publish-vswdbot-PAT) --packagePath $VSIX |
| 42 | displayName: "VSCE publish" |
| 43 | condition: and(succeeded(), eq(variables['dryrun'], 'false')) |
| 44 | |