name: Tag and Release
on: workflow_dispatch
jobs:
tag-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# NOTE: Fetch all for counting commits
fetch-depth: 0
# ... abbreviation ...
- name: deploy to clojars
# NOTE: Specify ID to refer outputs from other steps
id: deploy
run: clojure -T:build deploy
env:
CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# NOTE: Refer outputs
tag_name: ${{ steps.deploy.outputs.version }}
release_name: ${{ steps.deploy.outputs.version }}
body: released
draft: false
prerelease: false