-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (40 loc) · 1.34 KB
/
deploy.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
name: Deploy clj-otel modules
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Set up git user
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install Clojure CLI tools
uses: DeLaGuardo/setup-clojure@12.1
with:
cli: '1.11.1.1413'
- name: Cache deps
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.clojure
~/.cpcache
key: ${{ runner.os }}-${{ hashFiles('deps.edn') }}-${{ hashFiles('**/deps.edn') }}-deploy
restore-keys: |
${{ runner.os }}-${{ hashFiles('deps.edn') }}-${{ hashFiles('**/deps.edn') }}-
${{ runner.os }}-${{ hashFiles('deps.edn') }}-
${{ runner.os }}-
- name: Deploy release (and tag release if not *-SNAPSHOT version)
run: clojure -J-Dclojure.main.report=stderr -T:build deploy
env:
CLOJARS_PASSWORD: ${{ secrets.DEPLOY_TOKEN }}
CLOJARS_USERNAME: ${{ secrets.DEPLOY_USERNAME }}