Skip to content

Commit

Permalink
Adding auto-deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsbarbosa committed Apr 7, 2023
1 parent d7ea9ed commit e6ffcbf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy package

on:
release:
types: [created]

jobs:
deploy:
name: Deploy

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: lein deps
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v1
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Deploy to clojars
run: CLOJARS_USERNAME=${{ secrets.CLOJARS_USERNAME }} CLOJARS_PASSWORD=${{ secrets.CLOJARS_PASSWORD }} lein deploy clojars
5 changes: 4 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
(defproject org.clojars.majorcluster/lein-template.diplomat-http-w-datomic-service "0.2.2"
(defproject org.clojars.majorcluster/lein-template.diplomat-http-w-datomic-service "0.2.3"
:description "Diplomat architecture-pedestal styled template with datomic db for leiningen generation"
:url "https://github.com/majorcluster/diplomat-http-w-datomic-service-template"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"}
:deploy-repositories [["clojars" {:url "https://repo.clojars.org"
:username :env/clojars_username
:password :env/clojars_password}]]
:eval-in-leiningen true)

0 comments on commit e6ffcbf

Please sign in to comment.