Skip to content

Refactor CI_release.yml for clarity and consistency #28

Refactor CI_release.yml for clarity and consistency

Refactor CI_release.yml for clarity and consistency #28

Workflow file for this run

pool:

Check failure on line 1 in .github/workflows/CI_release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI_release.yml

Invalid workflow file

(Line: 1, Col: 1): Unexpected value 'pool', (Line: 4, Col: 1): Unexpected value 'variables', (Line: 8, Col: 1): Unexpected value 'stages', (Line: 1, Col: 1): Required property is missing: jobs
vmImage: 'ubuntu-latest'
variables:
ARTIFACT_DIR: $(Build.ArtifactStagingDirectory)
esrpConnectionName: 'test'
stages:
- stage: BuildAndPackage
jobs:
- job: Package
steps:
- task: NodeTool@0
condition: false
inputs:
versionSource: 'spec'
versionSpec: '22.x'
- task: Npm@1
condition: false
inputs:
command: 'install'
- task: Npm@1
condition: false
inputs:
command: 'custom'
customCommand: 'run package'
- script: |
echo "Artifact dir is $ARTIFACT_DIR"
echo "esrpConnectionName dir is $esrpConnectionName"
# cp vscode-edge-devtools.vsix $(ARTIFACT_DIR)
displayName: 'Copy VSIX to Artifact Staging Directory'
env:
ARTIFACT_DIR: $(ARTIFACT_DIR)
esrpConnectionName: $(esrpConnectionName)
- task: EsrpCodeSigning@6
inputs:
ConnectedServiceName: $(esrpConnectionName)
AppRegistrationClientId: $(appRegistrationClientId)
AppRegistrationTenantId: $(esrpTenantId)
EsrpClientId: $(esrpClientId)
UseMSIAuthentication: true
AuthAKVName: $(esrpAuthAkvName)
AuthSignCertName: $(esrpAuthCertName)
FolderPath: $(ARTIFACT_DIR)
Pattern: '*.vsix'
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
PendingAnalysisWaitTimeoutMinutes: '5'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(ARTIFACT_DIR)'
artifactName: 'vsix-artifact'
publishLocation: 'Container'
displayName: 'Publish VSIX Artifact'