File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,3 +104,39 @@ jobs:
104104 path : /tmp/circleci-artifacts
105105 - store_artifacts :
106106 path : /tmp/circleci-test-results
107+
108+ deploy :
109+ working_directory : ~/clojure-tw/weekly
110+ docker :
111+ - image : circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
112+ steps :
113+ - checkout
114+ - restore_cache :
115+ keys :
116+ - v1-dependencies-{{ checksum "project.clj" }}
117+ # fallback to using the latest cache if no exact match is found
118+ - v1-dependencies-
119+ - run :
120+ command : sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8.0/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/jdk1.8.0" >> $BASH_ENV
121+ # This is based on your 1.0 configuration file or project settings
122+ - run : sudo apt-get install curl && curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && sudo apt-get install -y nodejs
123+ - run : wget -O lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
124+ - run : chmod 755 lein
125+ - run : ./lein -v
126+ - run : ./lein deps
127+ - run : npm install
128+ - run : ./lein run
129+ - run : sed -i 's%https://${GH_TOKEN}@${GH_REF}%git@github.com:clojure-tw/weekly.git%g' deploy.sh
130+ - run : ./deploy.sh
131+
132+ workflows :
133+ version : 2
134+ ci :
135+ jobs :
136+ - build
137+ - deploy :
138+ filters :
139+ branches :
140+ only : master
141+ requires :
142+ - build
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ mkdir $OUT
2121cp -R ./build/dist/* $OUT
2222cp ./resources/public/weekly/* .xml $OUT
2323cp ./resources/assets/google9d6ebc58aae14a99.html $OUT
24- cp -f circle.yml $OUT
2524if hash html-minifier; then
2625 html-minifier --input-dir $OUT --output-dir $OUT --collapse-whitespace --file-ext html
2726fi
You can’t perform that action at this time.
0 commit comments