This repository has been archived by the owner on Jan 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappveyor.yml
59 lines (52 loc) · 1.6 KB
/
appveyor.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
platform:
- x64
image: Visual Studio 2015
environment:
nodejs_version: "8"
matrix:
- NODE_ENV: "prod"
win_runtime: win-x64
arch: x64
plat: win32
- NODE_ENV: "dev"
win_runtime: win-x64
arch: x64
plat: win32
install:
- ps: Install-Product node $env:nodejs_version x64
- node --version
- npm --version
- yarn --version
- yarn config set child-concurrency 1
- yarn add windows-build-tools --global
- yarn
build_script:
- node --version
- yarn --version
before_deploy:
- ps: >-
$TOKEN="$env:GITHUB_AUTH_TOKEN";
$OWNER="MaidSafe";
$REPO="release_config";
$REPO_PATH="safe_authenticator/log.toml";
$FILE="https://api.github.com/repos/$OWNER/$REPO/contents/$REPO_PATH";
$APP_DIR="$env:APP_PKG_DIR";
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]";
$headers.Add("Authorization", "token $TOKEN");
$headers.Add("Accept", 'application/vnd.github.v3.raw');
Invoke-WebRequest -URI $FILE -Headers $headers -OutFile ".\log.toml";
- yarn package
- yarn post-package
- echo %APPVEYOR_REPO_TAG%
- echo %APPVEYOR_REPO_TAG_NAME%
- ps: Get-ChildItem .\release\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- ps: Get-ChildItem .\release\*.txt | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
deploy:
release: $(appveyor_repo_tag_name)
tag: $(appveyor_repo_tag_name)
provider: GitHub
auth_token: $(github_auth_token)
draft: true
prerelease: true
on:
appveyor_repo_tag: true # deploy on tag push only