File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ matrix:
20
20
- rust : nightly
21
21
22
22
before_install :
23
- - openssl aes-256-cbc -K $encrypted_bc40b17e21fa_key -iv $encrypted_bc40b17e21fa_iv
24
- -in dist/deploy_key.enc -out dist/deploy_key -d
25
23
- brew update
26
24
27
25
install :
@@ -40,3 +38,16 @@ script:
40
38
- |
41
39
cargo build --verbose &&
42
40
cargo test
41
+
42
+ before_deploy :
43
+ - openssl aes-256-cbc -K $encrypted_bc40b17e21fa_key -iv $encrypted_bc40b17e21fa_iv
44
+ -in dist/deploy_key.enc -out /tmp/deploy_key -d
45
+ - eval "$(ssh-agent -s)"
46
+ - chmod 600 /tmp/deploy_key
47
+ - ssh-add /tmp/deploy_key
48
+
49
+ deploy :
50
+ provider : script
51
+ script : dist/arch/deploy.sh
52
+ on :
53
+ tags : true
Original file line number Diff line number Diff line change
1
+ #! /bin/env bash
2
+ cd " $TRAVIS_BUILD_DIR /dist/arch"
3
+
4
+ # Obtain mksrcinfo
5
+ wget https://www.archlinux.org/packages/community/any/pkgbuild-introspection/download/ -O pkgbuild-introspection.tar.xz
6
+ tar -Jxf pkgbuild-introspection.tar.xz usr/bin/mksrcinfo
7
+ PATH=" $PATH :$( pwd) /usr/bin"
8
+
9
+ # Prepare directory for deploy
10
+ git clone ssh://
[email protected] /tectonic.git aur
11
+ cp PKGBUILD aur
12
+ cd aur
13
+ mksrcinfo
14
+
15
+ git add PKGBUILD .SRCINFO
16
+ git config user.email
" [email protected] "
17
+ git config user.name " tectonic-deploy"
18
+ git commit -m " Release $TRAVIS_TAG "
19
+
20
+ # Deploy to AUR
21
+ git push origin master
You can’t perform that action at this time.
0 commit comments