This commit is contained in:
khlam 2019-12-12 14:36:30 -08:00
parent da7f0b2211
commit e9d4dd3fd2

View File

@ -1,39 +1,39 @@
branches: branches:
only: only:
- master - master
- dev - dev
skip_tags: true skip_tags: true
cache: cache:
- node_modules - node_modules
environment: environment:
matrix:
- nodejs_version: 8
install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Install-Product node $env:nodejs_version
- ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { $env:toggle_prerelease="false"; $env:rel_type="stable"} Else {$env:toggle_prerelease="true"; $env:rel_type="nightly"}
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
matrix: matrix:
fast_finish: true - nodejs_version: 8
build_script: install:
- npm run package-win - ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
after_build: - ps: Install-Product node $env:nodejs_version
- ps: 7z a DiscordSandbox-$env:package_version-$env:rel_type-win32x64.zip $env:APPVEYOR_BUILD_FOLDER\release\*.exe $env:APPVEYOR_BUILD_FOLDER\README.md $env:APPVEYOR_BUILD_FOLDER\LICENSE.md - ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { $env:toggle_prerelease="false"; $env:rel_type="stable"} Else {$env:toggle_prerelease="true"; $env:rel_type="nightly"}
artifacts: - set CI=true
- path: DiscordSandbox-$(package_version)-$(rel_type)-win32x64.zip - npm install -g npm@latest
name: DiscordSandbox-$(package_version)-$(rel_type)-win32x64 - set PATH=%APPDATA%\npm;%PATH%
shallow_clone: true - npm install
clone_depth: 1 matrix:
deploy: fast_finish: true
- provider: GitHub build_script:
release: $(package_version)-$(rel_type) - npm run package-win
prerelease: $(toggle_prerelease) after_build:
description: Automatically built from branch `$(APPVEYOR_REPO_BRANCH)`, AppVeyor build `$(APPVEYOR_BUILD_VERSION)`</br></br>$(APPVEYOR_REPO_COMMIT_MESSAGE) - ps: 7z a DiscordSandbox-$env:package_version-$env:rel_type-win32x64.zip $env:APPVEYOR_BUILD_FOLDER\release\*.exe $env:APPVEYOR_BUILD_FOLDER\README.md $env:APPVEYOR_BUILD_FOLDER\LICENSE.md
auth_token: artifacts:
secure: JPLPY6cHS8ydAPy2lc49ym1aBGk5uUStEAKfEQuVqdB2Jl9X/sfWdu4MVagLff1D - path: DiscordSandbox-$(package_version)-$(rel_type)-win32x64.zip
artifact: DiscordSandbox-$(package_version)-$(rel_type)-win32x64.zip name: DiscordSandbox-$(package_version)-$(rel_type)-win32x64
on: shallow_clone: true
branch: $(APPVEYOR_REPO_BRANCH) clone_depth: 1
deploy:
- provider: GitHub
release: $(package_version)-$(rel_type)
prerelease: $(toggle_prerelease)
description: Automatically built from branch `$(APPVEYOR_REPO_BRANCH)`, AppVeyor build `$(APPVEYOR_BUILD_VERSION)`</br></br>$(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: JPLPY6cHS8ydAPy2lc49ym1aBGk5uUStEAKfEQuVqdB2Jl9X/sfWdu4MVagLff1D
artifact: DiscordSandbox-$(package_version)-$(rel_type)-win32x64.zip
on:
branch: $(APPVEYOR_REPO_BRANCH)