-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 1.67 KB
/
create-release.yaml
File metadata and controls
53 lines (52 loc) · 1.67 KB
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
name: Create Release
on:
push:
branches:
- master
jobs:
create_release:
runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, 'release')"
name: Create a new Release
steps:
# first checkout the code
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install java before installing clojure tools which needs java
- name: Prepare java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
# Setup Clojure / Babashka environment
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
# Install just one or all simultaneously
# The value must indicate a particular version of the tool, or use 'latest'
# to always provision the latest version
cli: 1.11.1.1208 # Clojure CLI based on tools.deps
bb: 1.1.172 # Babashka
clj-kondo: 2023.01.20 # Clj-kondo
cljstyle: 0.15.0 # cljstyle
# Use caching for fetched dependencies
- name: Cache clojure dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
# Create the actual release
- name: create release
run: |
git fetch --all
git checkout master
git pull origin master
bb clci release --release
env:
GITHUB_TOKEN: ${{ github.token }}