release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |