-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
37 lines (37 loc) · 1.23 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
version: 1.0.{build}
branches:
only:
- master
install:
- ps: >-
appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe;
./rustup-init.exe -y --default-host x86_64-pc-windows-msvc;
$env:Path += ";C:\Users\appveyor\.cargo\bin”;
rustc -V;
cargo -V
build: false
test_script:
- cargo build --release
artifacts:
- path: target/release/mdbook-presentation-preprocessor
name: mdbook-presentation-preprocessor
before_deploy:
- ps: >-
$NAME = "mdbook-presentation-preprocesor-${env:APPVEYOR_REPO_TAG_NAME}-win";
New-Item -Path $NAME -ItemType directory;
Copy-Item target/release/mdbook-presentation-preprocessor.exe "${NAME}/";
7z a -ttar "${NAME}.tar" "${NAME}";
7z a "${NAME}.tar.gz" "${NAME}.tar";
Push-AppveyorArtifact "${NAME}.tar.gz"
deploy:
release: mdbook-presentation-preprocessor-$(APPVEYOR_REPO_TAG_NAME)-win
tag: $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: 4AwtLAfZQ6lqtyHUuM23grEQeb1c6+vpGzjPRiyIgrZ54XN9nW8xwkkyWxJZDYyF
artifact: /.*\.tar.gz/
draft: false
description: $(APPVEYOR_REPO_TAG_NAME)
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true