Skip to content

Commit 8488814

Browse files
Stage 1.2.2 release (#87)
* Stage 1.2.2 release * github action to maven publish * adopt-hotspot distribution * install gpg in action * configure when we skip signing * add test profile * update readme with publishing steps * update push gh action to only run on tags * remove comment * remove instructions from readme * delete images * move maven shade plugin to test profile * move plugins to profiles * run publish on push for testing * only run release on tags * update jackson-databind version
1 parent 81a2f04 commit 8488814

File tree

4 files changed

+302
-200
lines changed

4 files changed

+302
-200
lines changed

.github/workflows/realease.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
# Run workflow on tags
4+
on:
5+
push:
6+
tags:
7+
- 'v*.*.*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- name: Check out Git repository
14+
uses: actions/checkout@v2
15+
16+
- name: Install gpg
17+
run: sudo apt-get install gnupg2 -y
18+
19+
- name: Install Java and Maven
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: adopt-hotspot
23+
java-version: 8
24+
25+
- name: Release Maven package
26+
uses: samuelmeuli/action-maven-publish@v1
27+
with:
28+
gpg_private_key: ${{ secrets.gpg_private_key }}
29+
gpg_passphrase: ${{ secrets.gpg_passphrase }}
30+
nexus_username: ${{ secrets.nexus_username }}
31+
nexus_password: ${{ secrets.nexus_password }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
BUILD_DIR=build
33

4-
VERSION=1.2.1
4+
VERSION=1.2.2
55

66
NAME=scan-api
77
ARTIFACT=$(NAME)-$(VERSION).jar

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ and then set your API key as an environment variable and run the sample program
7474

7575
```bash
7676
export NIGHTFALL_API_KEY="NF-XXXXXX" # replace with your API key
77-
java -cp build/scan-api-1.2.1.jar ai.nightfall.examples.FileScannerExample /path/to/file
77+
java -cp build/scan-api-1.2.2.jar ai.nightfall.examples.FileScannerExample /path/to/file
7878
```
7979

8080

@@ -116,7 +116,7 @@ then set your API key as an environment variable and run the sample program (cha
116116
```bash
117117
export NIGHTFALL_API_KEY="NF-XXXXXX" # replace with your API key
118118
NGROK_URL="myurl" # replace with the URL from running ngrok above
119-
java -cp build/scan-api-1.2.1.jar ai.nightfall.examples.FileScannerExample "$NGROK_URL" /path/to/file
119+
java -cp build/scan-api-1.2.2.jar ai.nightfall.examples.FileScannerExample "$NGROK_URL" /path/to/file
120120
```
121121

122122

0 commit comments

Comments
 (0)