-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
57 lines (47 loc) · 1.91 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
---
# Inspired by https://github.com/rubrikinc/PowerShell-Module/blob/master/appveyor.yml
version: 1.0.0.{build}
skip_tags: true
skip_commits:
files:
- README.md
message: /updated readme.*|update appveyor.*/
environment:
git_access_token:
secure: on2+skcAH10Q4hezntmzYSh9CPbrDwTc7PSjmtu2pMNI4K3OZwoHZ0K9tmG8w6ZO
powershellgallery_api_key:
secure: wBMhSioFPCeI4m1nakLCoVx9UjK/8Q1eWaLBWy4FA3L6GH4nAbkqazFw9Uv0TU8v
pull_requests:
do_not_increment_build_number: true
build: off
before_build:
- ps: Update-ModuleManifest -ModuleVersion "$env:APPVEYOR_BUILD_VERSION" -Path "$env:APPVEYOR_BUILD_FOLDER\CygwinSetup\CygwinSetup.psd1"
build_script:
- ps: Write-Host "Nothing to build"
after_build:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:git_access_token):[email protected]`n"
- git config --global core.autocrlf false
- git config --global core.filemode false
- git config --global core.safecrlf false
- git config --global user.email "[email protected]"
- git config --global user.name "Lucas Theisen"
- git checkout master
- git add CygwinSetup/CygwinSetup.psd1
- ps: git commit -m "[skip ci] update version during build for $env:APPVEYOR_BUILD_VERSION"
- git push
- ps: Add-Type -Assembly "System.IO.Compression.FileSystem"
- ps: '[System.IO.Compression.ZipFile]::CreateFromDirectory("$env:APPVEYOR_BUILD_FOLDER\CygwinSetup", "$env:APPVEYOR_BUILD_FOLDER\CygwinSetup.zip", [System.IO.Compression.CompressionLevel]::Fastest, $True)'
- ps: Publish-Module -Name "$env:APPVEYOR_BUILD_FOLDER\CygwinSetup" -NuGetApiKey "$env:powershellgallery_api_key"
artifacts:
- path: '**\*.zip'
deploy:
tag: cygwin-setup-v$(appveyor_build_version)
provider: GitHub
auth_token: $(git_access_token)
artifact: CygwinSetup.zip
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: false