forked from chiflix/splayerx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-appx.yml
55 lines (42 loc) · 1.32 KB
/
appveyor-appx.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
# Commented sections below can be used to run tests on the CI server
# https://simulatedgreg.gitbooks.io/electron-vue/content/en/testing.html#on-the-subject-of-ci-testing
version: 0.1.{build}
skip_non_tags: true
skip_branch_with_pr: true
image: Visual Studio 2017
platform:
- x64
configuration: Release
init:
- git config --global core.autocrlf input
# Provide a short commit SHA1 too
- ps: ${env:APPVEYOR_REPO_COMMIT_SHORT} = (${env:APPVEYOR_REPO_COMMIT}).Substring(0, 8)
install:
- ps: Install-Product node 12 x64
- git reset --hard HEAD
- node --version
- npm i -g [email protected]
- ps: npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- yarn
- node scripts/check-electron-version.js
before_build:
- ps: ${env:REV} = (git rev-list --count HEAD)
build_script:
- yarn build:appx
test: off
after_build:
- ps: Move-Item -Path build\*.appx -Destination "splayerx-${env:APPVEYOR_REPO_COMMIT_SHORT}-${env:REV}.appx"
artifacts:
- path: '*.appx'
deploy:
provider: S3
access_key_id:
secure: tLI8AWsbZbrNwTLU5p/j7wgD2fwbZ8BmE+h9gzxEkLI=
secret_access_key:
secure: Kta60XT42Orc93ZSoxbNRlFP41JmfzaB3UjjijKPtHN/199BXPcdshLIy4VduOIP
bucket: tomasen
region: ap-northeast-1
unzip: false
set_public: true
on:
appveyor_repo_tag: true # deploy on tag push only