-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1001 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
40
41
42
43
name: release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.2.1446
- name: Build
run: clojure -T:build bin
- name: Get version
id: get-version
run: echo "version=$(target/gnife --version)" >> "$GITHUB_OUTPUT"
- name: Upload
uses: actions/upload-artifact@v4
with:
name: gnife-${{ steps.get-version.outputs.version }}
path: |
target/gnife
target/gnife.jar
- name: Tag
run: |
git tag ${{ steps.get-version.outputs.version }}
git push origin ${{ steps.get-version.outputs.version }}