Release xiana 0.5.0-rc6 (#270) #55
Workflow file for this run
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: Push to Clojars | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
push-to-clojars: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Clojure | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1113 | |
lein: 2.9.8 | |
- name: Cache clojure dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.deps.clj | |
# List all files containing dependencies: | |
key: cljdeps-${{ hashFiles('deps.edn') }} | |
# key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }} | |
# key: cljdeps-${{ hashFiles('project.clj') }} | |
# key: cljdeps-${{ hashFiles('build.boot') }} | |
restore-keys: cljdeps- | |
- name: Setup babashka | |
run: | | |
curl -L https://github.com/borkdude/babashka/releases/download/v0.2.5/babashka-0.2.5-linux-amd64.zip -o bb.zip | |
unzip bb.zip | |
chmod +x bb | |
sudo mv bb /usr/bin | |
- name: Set TAG env variable | |
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Deploy to Clojars | |
env: | |
CLOJARS_LOGIN: ${{ secrets.CLOJARS_LOGIN }} | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_LOGIN }} | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | |
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | |
TAG: ${{ env.TAG }} | |
run: /usr/bin/bb ./.github/clojars_deploy.clj |