Skip to content

Commit

Permalink
Merge pull request #24 from 200ok-ch/setup-ci
Browse files Browse the repository at this point in the history
Setup ci
  • Loading branch information
munen authored Jan 4, 2021
2 parents 2e8fd0e + 2c3085e commit 083558c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
24 changes: 20 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,34 @@ jobs:
- v1-dependencies-
- run:
name: Install dependencies
command: sudo apt-get update -yq && sudo apt install -yq git
command: apt-get update -yq && apt install -yq git
- run:
name: Configure Git
command: |
git config --global user.email "info@200ok.ch"
git config --global user.name "200ok CI bot"
git remote rm origin
git remote add origin https://${GH_TOKEN}@github.com/200ok-ch/org-parser.git > /dev/null 2>&1
git remote rm origin > /dev/null 2>&1
# Set up origin with the ability to push to it through
# token auth.
git remote add origin "https://${GH_TOKEN}@github.com/200ok-ch/org-parser.git" > /dev/null 2>&1
# Checkout the relevant branch. `lein release` does not
# work from a commit sha.
git checkout -b "$CIRCLE_BRANCH"
- run:
name: Deploy to Clojars
command: lein release :patch
command: |
# Take away the `-SNAPSHOT` postfix from the latest version
lein change version leiningen.release/bump-version release
lein vcs commit "chore: Bump to version %s [skip ci]"
lein vcs tag v --no-sign
# Deploy this version to Clojars
lein update-in :deploy-repositories conj "[\"clojars\" {:url \"https://repo.clojars.org/\" :username :env/clojars_username :password :env/clojars_password :sign-releases false}]" -- deploy clojars
# Bump to the next patch level with `-SNAPSHOT` postfix
lein change version leiningen.release/bump-version
lein vcs commit "chore: Bump to version %s [skip ci]"
git push --set-upstream origin setup-ci
workflows:
version: 2
Expand Down
10 changes: 1 addition & 9 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject org-parser "0.1.0"
(defproject org-parser "0.1.3-SNAPSHOT"
:description "A parser for the Org mode markup language for Emacs"
:url "https://github.com/200ok-ch/org-parser"
:license {:name "GNU Affero General Public License v3.0"
Expand All @@ -14,14 +14,6 @@
:plugins [[lein-cljsbuild "1.1.8"]
[lein-doo "0.1.10"]]
:profiles {:uberjar {:aot :all}}
:deploy-repositories [["snapshots" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]
["releases" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]]
:doo {:build "test-cljs-with-node"}
:cljsbuild
{:builds [{:id "foo"
Expand Down

0 comments on commit 083558c

Please sign in to comment.