Skip to content

Publish

Publish #28

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
version:
description: 'CLI version to publish (ie 1.11.1.1234)'
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Github identity
run: |
git config --global user.name clojure-build
git config --global user.email "[email protected]"
- name: Update tap
run: |
curl -L --retry 5 --retry-all-errors --retry-max-time 120 "https://github.com/clojure/brew-install/releases/download/$VERSION/clojure@$VERSION.rb" -o "Formula/clojure@$VERSION.rb"
git add "Formula/clojure@$VERSION.rb"
git commit -m "Publish $VERSION"
git push
env:
VERSION: ${{ inputs.version }}