Skip to content

release

release #2

Workflow file for this run

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 }}