-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 1.57 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
name: Publish kmono 👘
on: [push]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- uses: extractions/setup-just@v1
- uses: DeLaGuardo/[email protected]
with:
cli: latest
- uses: s4u/[email protected]
with:
githubServer: false
servers: |
[{"id": "github-kepler",
"username": "${{ secrets.ORG_GITHUB_ACTOR }}",
"password": "${{ secrets.ORG_GITHUB_TOKEN }}"},
{"id": "github-kepler-kmono",
"username": "${{ github.actor }}",
"password": "${{ secrets.GITHUB_TOKEN }}"}]
- name: Test
run: |
just test
- name: Build
run: |
just build ":snapshot?" ${{ github.ref_name != 'master' }}
- name: Release
env:
CLOJARS_USERNAME: infrastructure-kepler16-com
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
run: |
just release \
":snapshot?" ${{ github.ref_name != 'master' }} \
":create-tags?" ${{ github.ref_name == 'master' }}