blob: 135085481b27d6fe286a71b761743ed2db45a4de (
plain) (
blame)
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
|
name: Tag and Release
on: workflow_dispatch
jobs:
tag-and-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
# NOTE: Fetch all for counting commits
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 21
- uses: DeLaGuardo/setup-clojure@13.4
with:
cli: 1.12.0.1530
- name: Show versions
run: |
java -version
clojure --version
- 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
- run: |
clojure -T:build update-documents
git diff
git config --global user.email "github-actions@example.com"
git config --global user.name "github-actions"
git add -A
git commit -m "Update for release"
git push
|