-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
42 lines (41 loc) · 1.23 KB
/
circle.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
version: 2
jobs:
build:
docker:
- image: ubuntu:xenial
steps:
- checkout
- run:
name: Install
command: |
apt update
apt install -y build-essential curl
- run:
name: Build
command: ./make.sh
- run:
name: Test
command: ./fsnotifier64 --selftest
- deploy:
name: Publish
command: |
if [ "$CIRCLE_TAG" ]; then
curl -L -o ~/github-release.tar.bz2 https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
tar -C ~ -jxf ~/github-release.tar.bz2
export PATH=~/bin/linux/amd64:"$PATH"
github-release release \
--user int128 \
--repo idea-fsnotifier-wsl \
--tag "$CIRCLE_TAG" \
--name "$CIRCLE_TAG" \
--description "Released on $(date +%Y-%m-%d)"
github-release upload \
--user int128 \
--repo idea-fsnotifier-wsl \
--tag "$CIRCLE_TAG" \
--name fsnotifier64 \
--file fsnotifier64
fi
deployment:
publish:
tag: /.*/