build winget as well
This commit is contained in:
parent
215ac0c00a
commit
c7e8ea1699
1 changed files with 37 additions and 20 deletions
|
@ -62,19 +62,20 @@ jobs:
|
||||||
*.AppImage
|
*.AppImage
|
||||||
*.deb
|
*.deb
|
||||||
*.snap
|
*.snap
|
||||||
|
*.rpm
|
||||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
# - task: PublishBuildArtifacts@1
|
||||||
displayName: Upload Artifacts
|
# displayName: Upload Artifacts
|
||||||
inputs:
|
# inputs:
|
||||||
ArtifactName: "Cider-2"
|
# ArtifactName: "Cider-2"
|
||||||
publishLocation: "Container"
|
# publishLocation: "Container"
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@1
|
# - task: DownloadBuildArtifacts@1
|
||||||
inputs:
|
# inputs:
|
||||||
buildType: 'current'
|
# buildType: 'current'
|
||||||
downloadType: 'specific'
|
# downloadType: 'specific'
|
||||||
downloadPath: '$(System.ArtifactsDirectory)'
|
# downloadPath: '$(System.ArtifactsDirectory)'
|
||||||
|
|
||||||
# Windows Production Build Test
|
# Windows Production Build Test
|
||||||
# This job is used to test the production build of the Windows distribution.
|
# This job is used to test the production build of the Windows distribution.
|
||||||
|
@ -119,22 +120,38 @@ jobs:
|
||||||
Contents: "*.exe"
|
Contents: "*.exe"
|
||||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
# - task: PublishBuildArtifacts@1
|
- job: compile_winget
|
||||||
# displayName: Upload Artifacts
|
displayName: "Compile for Winget"
|
||||||
# inputs:
|
pool: Linux
|
||||||
# ArtifactName: "Cider-2"
|
steps:
|
||||||
# publishLocation: "Container"
|
- task: NodeTool@0
|
||||||
|
displayName: "Install Node.js"
|
||||||
|
inputs:
|
||||||
|
versionSource: "fromFile"
|
||||||
|
versionFilePath: ".nvmrc"
|
||||||
|
|
||||||
# - task: DownloadBuildArtifacts@1
|
- script: yarn set version from sources
|
||||||
# inputs:
|
displayName: "Setup yarn"
|
||||||
# buildType: 'current'
|
|
||||||
# downloadType: 'specific'
|
- script: yarn install
|
||||||
# downloadPath: '$(System.ArtifactsDirectory)'
|
displayName: "Install Dependencies"
|
||||||
|
|
||||||
|
- script: yarn run winget
|
||||||
|
env: {GH_TOKEN : $(GH_TOKEN)}
|
||||||
|
displayName: "Compile Distribution"
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: "Copy to artifacts staging directory"
|
||||||
|
inputs:
|
||||||
|
SourceFolder: "dist"
|
||||||
|
Contents: "*.exe"
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
|
||||||
- job: upload_files
|
- job: upload_files
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- compile_linux
|
- compile_linux
|
||||||
- compile_windows
|
- compile_windows
|
||||||
|
- compile_winget
|
||||||
pool: Linux
|
pool: Linux
|
||||||
steps:
|
steps:
|
||||||
- task: GitHubRelease@1
|
- task: GitHubRelease@1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue