Skip to content

Commit

Permalink
feat: publish clojure client to artifactory (#33)
Browse files Browse the repository at this point in the history
* feat: publish clojure client to artifactory

* feat: pipeline fix

* feat: pipeline fix

* feat: bump version

* feat: change variable names

* feat: version bump to 0.2.0

* feat: variable name change

---------

Co-authored-by: gagan.dhand <[email protected]>
  • Loading branch information
gdgagan696 and gdgagangeek authored May 27, 2024
1 parent c03ca8f commit 5be3fe2
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-clojure-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Stencil Clojure Client
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
publish-clojure-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 8
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.8
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Clojure Client
env:
CLOJARE_ARTIFACTORY_USERNAME: ${{ secrets.CLOJARE_ARTIFACTORY_USERNAME }}
CLOJARE_ARTIFACTORY_PASSWORD: ${{ secrets.CLOJARE_ARTIFACTORY_PASSWORD }}
working-directory: clients/clojure
run: lein deploy release

11 changes: 9 additions & 2 deletions clients/clojure/project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject com.gotocompany/stencil-clj "0.5.0"
(defproject com.gotocompany/stencil-clj "0.2.0"
:description "Stencil client for clojure"
:url "https://github.com/goto/stencil"
:license {:name "Apache 2.0"
Expand All @@ -8,4 +8,11 @@
:plugins [[lein-cljfmt "0.7.0"]]
:global-vars {*warn-on-reflection* true}
:source-paths ["src"]
:repl-options {:init-ns stencil.core})
:repl-options {:init-ns stencil.core}
:deploy-repositories [["release" {:url "https://clojars.org/repo"
:username :env/CLOJARE_ARTIFACTORY_USERNAME
:password :env/CLOJARE_ARTIFACTORY_PASSWORD
:sign-releases false
}]
]
)

0 comments on commit 5be3fe2

Please sign in to comment.