-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (53 loc) · 1.36 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release
on:
push:
tags:
- 'latest'
jobs:
release:
environment: 'release'
runs-on: 'ubuntu-latest'
steps:
- name: Checkout - with tag support
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup git user - so that we can later tag
uses: fregante/setup-git-user@v2
- name: Clojure deps cache
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
key: $${ runner.os }}-cljdeps-release-${{ hashFiles('deps.edn') }}
restore-keys: $${ runner.os }}-cljdeps-release-
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '23'
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: 'latest'
bb: 'latest'
- name: Tools Versions
run: |
echo "bb --version"
bb --version
echo "node --version"
node --version
echo "java -version"
java -version
echo "clojure -Sdescribe"
clojure -Sdescribe
- name: Jar
run: bb jar
- name: Add Version Tag
run: bb -ci-version
- name: Deploy
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
run: bb -ci-deploy