Skip to content

Tag and Release

Tag and Release #25

Workflow file for this run

name: Tag and Release
on: workflow_dispatch
jobs:
tag-and-release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 11
- uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
- name: Show versions
run: |
java -version
clojure --version
- uses: actions/cache@v4
with:
path: ~/.m2
key: test-m2-${{ hashFiles('deps.edn') }}-v1
- name: Lint build.edn
run: clojure -T:build lint
- id: deploy
name: deploy to clojars
run: clojure -T:build deploy
env:
CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.deploy.outputs.version }}
skipIfReleaseExists: true
generateReleaseNotes: true
- run: |
clojure -T:build update-documents
git diff
git config --global user.email "github-actions@example.com"
git config --global user.name "github-actions"
git add -A
git commit -m "Update for release" || exit 0
git push