Skip to content

Commit c41a7fb

Browse files
committed
Add GH Actions for publishing release archive
Add workflow that create an archive with JAR file, CHANGELOG.md, README.md and upload it to GH release. Workflow triggered by GIT tag, in other cases it is skipped. Related to #97
1 parent 9f3d2d8 commit c41a7fb

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publishing
2+
3+
on:
4+
push:
5+
tags: ['*']
6+
7+
jobs:
8+
publish-jar-tag:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Setup Java
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '12'
18+
distribution: 'zulu'
19+
20+
- name: Setup Clojure tools
21+
uses: DeLaGuardo/[email protected]
22+
with:
23+
cli: 1.10.1.693 # Clojure CLI based on tools.deps
24+
lein: 2.9.1 # or use 'latest' to always provision latest version of leiningen
25+
boot: 2.8.3 # or use 'latest' to always provision latest version of boot
26+
27+
- run: lein uberjar
28+
29+
- run: sudo apt install zip
30+
31+
- name: Create files to release
32+
run: |
33+
lein uberjar
34+
zip jepsen.tarantool-${{ env.TAG }}.zip
35+
target/jepsen.tarantool-${{ env.TAG }}-standalone.jar
36+
README.md
37+
CHANGELOG.md
38+
39+
- name: Upload files to release
40+
uses: svenstaro/upload-release-action@v2
41+
with:
42+
repo_token: ${{ secrets.GITHUB_TOKEN }}
43+
file: ./jepsen.tarantool-${{ env.TAG }}.zip
44+
asset_name: jepsen.tarantool-${{ env.TAG }}.zip
45+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)