-
Notifications
You must be signed in to change notification settings - Fork 3
77 lines (63 loc) · 1.91 KB
/
release.yml
File metadata and controls
77 lines (63 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release
on:
workflow_dispatch:
jobs:
release:
environment: release
runs-on: ubuntu-latest
# I do not know of a way to restrict to the main branch so try to skip the whole job if
# user selected some other branch from GitHub Actions GUI
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Git User so that we can later commit
uses: fregante/setup-git-user@v2
- name: Clojure deps cache
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.deps.clj
~/.gitlibs
key: $${ runner.os }}-cljdeps-${{ hashFiles('deps.edn','bb.edn') }}
restore-keys: $${ runner.os }}-cljdeps-
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Install Clojure Tools
uses: DeLaGuardo/setup-clojure@13.4
with:
bb: 'latest'
cli: '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: Download Clojure Dependencies
run: bb download-deps
- name: Release Prep (step 1 of 5)
run: bb ci-release prep
- name: Release Deploy (step 2 of 5)
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
run: bb ci-release deploy-remote
- name: Release Commit (step 3 of 5)
run: bb ci-release commit
- name: Create GitHub Release (step 4 of 5)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bb ci-release create-github-release
- name: Inform Cljdoc (step 5 of 5)
run: bb ci-release inform-cljdoc