File tree 2 files changed +41
-24
lines changed
2 files changed +41
-24
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,20 @@ version: 2.1
7
7
workflows :
8
8
build-deploy :
9
9
jobs :
10
- - build
10
+ - build :
11
+ filters :
12
+ tags :
13
+ only : /.*/
11
14
12
15
- deploy :
13
16
requires :
14
17
- build
18
+ filters :
19
+ tags :
20
+ only : /Release-.*/
15
21
context :
16
22
- CLOJARS_DEPLOY
23
+
17
24
jobs :
18
25
build :
19
26
docker :
73
80
steps :
74
81
- checkout
75
82
83
+ # Download and cache dependencies
84
+ - restore_cache :
85
+ keys :
86
+ - v1-dependencies-{{ checksum "project.clj" }}
87
+ # fallback to using the latest cache if no exact match is found
88
+ - v1-dependencies-
89
+
76
90
# Download and cache dependencies
77
91
- restore_cache :
78
92
keys :
@@ -82,13 +96,36 @@ jobs:
82
96
83
97
- run :
84
98
name : Install babashka
85
- command : bash <(curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install) --dir . --download-dir .
86
- - run : lein with-profile ci deps
99
+ command : |
100
+ curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install -o install.sh
101
+ sudo bash install.sh
102
+ rm install.sh
103
+ - run :
104
+ name : Install deployment-script
105
+ command : |
106
+ curl -s https://raw.githubusercontent.com/clj-commons/infra/main/deployment/circle-maybe-deploy.bb -o circle-maybe-deploy.bb
107
+ chmod a+x circle-maybe-deploy.bb
108
+ - run : lein deps
87
109
110
+ - run :
111
+ name : Setup GPG signing key
112
+ command : |
113
+ GNUPGHOME="$HOME/.gnupg"
114
+ export GNUPGHOME
115
+ mkdir -p "$GNUPGHOME"
116
+ chmod 0700 "$GNUPGHOME"
117
+ echo "$GPG_KEY" \
118
+ | base64 --decode --ignore-garbage \
119
+ | gpg --batch --allow-secret-key-import --import
120
+ gpg --keyid-format LONG --list-secret-keys
88
121
- save_cache :
89
122
paths :
90
123
- ~/.m2
91
124
key : v1-dependencies-{{ checksum "project.clj" }}
92
125
- run :
93
126
name : Deploy
94
- command : .circleci/maybe-deploy.bb lein with-profile ci deploy clojars
127
+ command : |
128
+ GPG_TTY=$(tty)
129
+ export GPG_TTY
130
+ echo $GPG_TTY
131
+ ./circle-maybe-deploy.bb lein with-profile ci deploy clojars
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments