File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -45,3 +45,31 @@ before_script:
45
45
- sudo chmod a+rw /dev/loop0
46
46
- dd if=/dev/zero bs=512 count=2048 of=disk
47
47
- losetup /dev/loop0 disk
48
+
49
+ deploy :
50
+ # Let before_deploy take over
51
+ provider : script
52
+ script : ' true'
53
+ on :
54
+ branch : master
55
+
56
+ before_deploy :
57
+ - cd $TRAVIS_BUILD_DIR
58
+ # Update tag for version defined in lfs.h
59
+ - LFS_VERSION=$(grep -ox '#define LFS_VERSION .*' lfs.h | cut -d ' ' -f3)
60
+ - LFS_VERSION_MAJOR=$((0xffff & ($LFS_VERSION >> 16)))
61
+ - LFS_VERSION_MINOR=$((0xffff & ($LFS_VERSION >> 0)))
62
+ - LFS_VERSION="v$LFS_VERSION_MAJOR.$LFS_VERSION_MINOR"
63
+ - |
64
+ curl -u $GEKY_BOT -X POST \
65
+ https://api.github.com/repos/$TRAVIS_REPO_SLUG/git/refs \
66
+ -d @- <<< "{
67
+ \"ref\": \"refs/tags/$LFS_VERSION\",
68
+ \"sha\": \"$TRAVIS_COMMIT\"
69
+ }"
70
+ - |
71
+ curl -f -u $GEKY_BOT -X PATCH \
72
+ https://api.github.com/repos/$TRAVIS_REPO_SLUG/git/refs/tags/$LFS_VERSION \
73
+ -d @- <<< "{
74
+ \"sha\": \"$TRAVIS_COMMIT\"
75
+ }"
You can’t perform that action at this time.
0 commit comments