Skip to content

Commit 12204e2

Browse files
authored
Update appveyor.yml
- Fix deployment to GitHub release (artifacts path was wrong)
1 parent 573af09 commit 12204e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

appveyor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,11 @@ build_script:
290290
{
291291
Compress-7Zip -Path . -Filter "*.dfu" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
292292
}
293-
Push-AppveyorArtifact $env:BOARD_NAME-$env:GitVersion_SemVer.zip
293+
294+
& cd .. > $null
295+
Rename-Item -NewName build-$env:BOARD_NAME -Path "build" -Force
296+
297+
Push-AppveyorArtifact build-$env:BOARD_NAME\$env:BOARD_NAME-$env:GitVersion_SemVer.zip
294298
295299
# upload package only if this not a PR
296300
# and this is 'develop' (not develop-something) or release or master (for these only on tags)
@@ -321,8 +325,6 @@ build_script:
321325
}
322326
}
323327
324-
& cd .. > $null
325-
Rename-Item -NewName build-$env:BOARD_NAME -Path "build" -Force
326328
& md build > $null
327329
& cd build > $null
328330
}
@@ -331,9 +333,7 @@ build_script:
331333
}
332334
333335
before_deploy:
334-
- ps: |
335-
336-
& $env:APPVEYOR_BUILD_FOLDER\generate-change-log.ps1
336+
- ps: $env:APPVEYOR_BUILD_FOLDER\generate-change-log.ps1
337337

338338
# requires APPVEYOR_DISCORD_WEBHOOK_URL enviroment variable set with Discord webhook URL
339339
on_failure:

0 commit comments

Comments
 (0)