Skip to content

Commit

Permalink
Setup deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsbarbosa committed Apr 6, 2023
1 parent cb32488 commit e349ca1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: lein deps
- name: Lint
run: lein lint
- name: Run tests
run: lein test
- uses: actions/checkout@v3
- name: Install dependencies
run: lein deps
- name: Lint
run: lein lint
- name: Run tests
run: lein test
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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: Lint
run: lein lint
- name: Run tests
run: lein test
- name: Deploy to clojars
run: CLOJARS_USERNAME=${{ secrets.CLOJARS_USERNAME }} CLOJARS_PASSWORD=${{ secrets.CLOJARS_PASSWORD }} lein deploy clojars
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject org.clojars.majorcluster/clj-data-adapter "0.8.3"
(defproject org.clojars.majorcluster/clj-data-adapter "0.8.4"
:description "A Clojure data adapter library to convert your data between your layers"
:url "https://github.com/majorcluster/clj-data-adapter"
:license {:name "The MIT License"
Expand Down

0 comments on commit e349ca1

Please sign in to comment.