-
Notifications
You must be signed in to change notification settings - Fork 27
56 lines (53 loc) · 1.67 KB
/
release.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release dev version
on: [workflow_dispatch]
permissions: # Exchange the OIDC token (JWT) for a cloud access token
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::173728190221:role/github-CLI-upload
aws-region: us-east-2
- 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: Set up Java
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
- name: Set up Clojure
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-
- name: Calculate version
run: script/update_version
- name: Package release
run: clojure -T:build release
- name: Upload release to site
run: script/publish.sh
- name: Tag release
run: |
git tag -a `cat VERSION` -m `cat VERSION`
git push --tags
git push
- name: Publish versioned brew recipe to tap
run: gh workflow run -R clojure/homebrew-tools publish -r master -f version=$(cat VERSION)
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}