-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 925 Bytes
/
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
name: Tag and Release
on: workflow_dispatch
jobs:
tag-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
- run: java -version
- uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
- uses: actions/cache@v4
with:
path: ~/.m2
key: test-m2-${{ hashFiles('deps.edn') }}-v1
- name: deploy to clojars
id: deploy
run: clojure -T:build deploy
env:
CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.deploy.outputs.version }}
skipIfReleaseExists: true
generateReleaseNotes: true