kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
43 wiersze
1.1 KiB
YAML
43 wiersze
1.1 KiB
YAML
image: Visual Studio 2017
|
|
|
|
platform:
|
|
- x64
|
|
|
|
cache:
|
|
- node_modules
|
|
- '%USERPROFILE%\.electron'
|
|
|
|
init:
|
|
- git config --global core.autocrlf input
|
|
- git config --global credential.helper store
|
|
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GH_TOKEN):x-oauth-basic@github.com`n"
|
|
- git config --global user.email "%GitHubUserEmail%"
|
|
- git config --global user.name "%GitHubUserName%"
|
|
|
|
install:
|
|
- ps: Install-Product node 7 x64
|
|
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
|
|
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
|
|
- npm install
|
|
|
|
build_script:
|
|
- npm run dist
|
|
|
|
artifacts:
|
|
- path: dist\*
|
|
name: LocalDist
|
|
|
|
test: off
|
|
|
|
deploy:
|
|
release: v$(appveyor_build_version)
|
|
description: 'OpenBuilds Machine Driver (`$(TARGET_UI_BRANCH)`).\n\n>$(GIT_LOGS)'
|
|
provider: GitHub
|
|
auth_token:
|
|
secure: edabc7a03203f3ae56f249aee33f2c53b999d86e # your encrypted token from GitHub
|
|
artifact: LocalDist
|
|
draft: false
|
|
prerelease: false
|
|
on:
|
|
branch: master # release from master branch only
|