-
Notifications
You must be signed in to change notification settings - Fork 11
30 lines (28 loc) · 872 Bytes
/
publish.yml
File metadata and controls
30 lines (28 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 "clojure-build@users.noreply.github.com"
- 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 }}