Skip to content

Instantly share code, notes, and snippets.

@nvdaes
Last active May 21, 2019 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvdaes/a486e45b98566d530688f6da9ce75f84 to your computer and use it in GitHub Desktop.
Save nvdaes/a486e45b98566d530688f6da9ce75f84 to your computer and use it in GitHub Desktop.
AppVeyor configuration file to release NVDA add-ons on GitHub or FTP. (Created by @abdel792).
version: '{branch}-{build}'
environment:
PY_PYTHON: 3.7-32
install:
- cmd: >-
set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
python -m pip install -U pip
pip install wheel
pip install scons
pip install markdown
build_script:
- cmd: scons
artifacts:
- path: '*.nvda-addon'
name: addon
type: WebDeployPackage
before_deploy:
- ps: $env:REPO_NAME = $env:APPVEYOR_REPO_NAME.Substring($env:APPVEYOR_REPO_NAME.IndexOf('/') + 1)
deploy:
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
release: Release $(APPVEYOR_REPO_TAG_NAME)
description: This is the release $(APPVEYOR_REPO_TAG_NAME) of the $(REPO_NAME) addon for the NVDA screen reader built and uploaded to GitHub using Appveyor.
auth_token:
secure: 3yxF2EQ/wfLKNEobcRfdNL6srjXjoMdRa/LSQ7z2PJNqOL3IEyiFtlnxxHeIQskH
artifact: addon
on:
appveyor_repo_tag: true
version: '{branch}-{build}'
environment:
PY_PYTHON: 3.7-32
install:
- cmd: >-
set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
python -m pip install -U pip
pip install wheel
pip install scons
pip install markdown
build_script:
- cmd: scons
artifacts:
- path: '*.nvda-addon'
name: addon
type: WebDeployPackage
deploy:
provider: FTP
protocol: ftp
host:
secure: Encrypted host
username:
secure: Encrypted username
password:
secure: encrypted password
folder: /folderName
artifact: addon
on:
appveyor_repo_tag: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment