Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Dec 20, 2023
1 parent 7eca699 commit 171e41a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ jobs:
with:
distribution: 'adopt'
java-version: '11'
- name: Configure settings.xml
run: |
mkdir -p ~/.m2
echo "<settings><servers><server></id><username>${{ secrets.CLOJARS_USER }}</username><password>${{ secrets.CLOJARS_TOKEN }}</password></server></servers></settings>" > ~/.m2/settings.xml
- name: deploy
env:
CLOJARS_USER: ${{ secrets.CLOJARS_USER }}
CLOJARS_TOKEN: ${{ secrets.CLOJARS_TOKEN }}
COMMIT_MSG: ${{ github.event.head_commit.message }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Metosin Automated Release"
if [[ "$COMMIT_MSG" == "Release :major" ]]; then
lein release :major
elif [[ "$COMMIT_MSG" == "Release :minor" ]]; then
Expand All @@ -84,3 +84,5 @@ jobs:
else
lein deploy snapshot
fi
- run: rm -f ~/.m2/settings.xml
if: ${{ always }}
4 changes: 0 additions & 4 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@
:src-uri "http://github.com/metosin/ring-swagger/blob/master/"
:src-uri-prefix "#L"}
:deploy-repositories [["snapshot" {:url "https://clojars.org/repo"
:username :env/clojars_user
:password :env/clojars_token
:sign-releases false}]
["release" {:url "https://clojars.org/repo"
:username :env/clojars_user
:password :env/clojars_token
:sign-releases false}]]
:release-tasks [["clean"]
["vcs" "assert-committed"]
Expand Down

0 comments on commit 171e41a

Please sign in to comment.