aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: a94c26aa5e78ea0c193748c983f287a552eeec43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
image: Visual Studio 2017
configuration: Debug
platform: Any CPU
before_build:
- nuget restore

build:
    verbosity: detailed
    project: Microbit.sln
 
after_build:
- cmd: tree /F
- cmd: 7z a -tzip "Microbit/bin/Debug/Microbit.zip" "Microbit/bin/Debug/*"

artifacts:
- path: Microbit/bin/Debug/Microbit.zip
  name: DevBuild

deploy:
    provider: GitHub
    release: Continuous build
    description: 'Microbit Development Builds'
    auth_token:
        secure: MeuJU9DaBpnzRdWaqvDfR4M7WhtB90FIpmYkZ5GmS8GyVSWyHT2FAMtDczW3D/JQ
    artifact: /.*\.zip/
    draft: false
    prerelease: true
    force_update: true
    tag: continuous
    on:
        appveyor_repo_tag: true 

on_success:
  - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
  - ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
  - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
  - ps: ./send.ps1 failure $env:WEBHOOK_URL