File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,16 @@ cache:
49
49
- target
50
50
- C:\Users\appveyor\.cargo\registry
51
51
52
- after_test :
53
- - ps : New-Item -Path "${env:APPVEYOR_REPO_COMMIT}" -ItemType "directory"
54
- - ps : New-Item -Path "target" -ItemType "directory" -Force
55
- - ps : New-Item -Path "target/${env:TARGET}" -ItemType "directory" -Force
56
- - ps : New-Item -Path "target/${env:TARGET}/release" -ItemType "directory" -Force
57
- - ps : New-Item -Path "target/${env:TARGET}/release/dist" -ItemType "directory" -Force
58
- - ps : Get-ChildItem -Path target\${env:TARGET}\release\dist -Filter '*.tar.gz' | Move-Item -Destination ${env:APPVEYOR_REPO_COMMIT}
59
- - ps : Get-FileHash .\${env:APPVEYOR_REPO_COMMIT}\* | ForEach-Object {[io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")}
60
-
61
- artifacts :
62
- - path : $(APPVEYOR_REPO_COMMIT)\cargo-*
63
- name : cargo
52
+ before_deploy :
53
+ - ps : |
54
+ New-Item -Path deploy -ItemType directory
55
+ Get-ChildItem -Path target\${env:TARGET}\release\dist -Filter '*.tar.gz' | Move-Item -Destination deploy
56
+ Get-FileHash .\deploy\* | ForEach-Object {
57
+ [io.file]::WriteAllText($_.Path + ".sha256", $_.Hash.ToLower() + "`n")
58
+ }
59
+ Get-ChildItem -Path deploy | Foreach-Object {
60
+ Push-AppveyorArtifact $_.FullName -FileName ${env:APPVEYOR_REPO_COMMIT}/$_.BaseName
61
+ }
64
62
65
63
deploy :
66
64
- provider : S3
@@ -71,7 +69,7 @@ deploy:
71
69
bucket : rust-lang-ci
72
70
set_public : true
73
71
region : us-east-1
74
- artifact : cargo
75
72
folder : cargo-builds
73
+ artifact : /.*\.(tar.gz|sha256)/
76
74
on :
77
75
branch : auto-cargo
You can’t perform that action at this time.
0 commit comments