Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed May 30, 2021
1 parent e26b6bb commit 6b64e46
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 22 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: make all
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: "tagged-release"

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: make all
- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@v1.2.0
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE.txt
build/distributions/*.zip
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
GIT_TAG := $(shell git describe --tags 2>/dev/null)

.PHONY: all
all:
./gradlew --console plain -Pversion=${GIT_TAG}

.PHONY: deps
deps:
./gradlew dependencies
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.org/tomcz/pemToJks.svg?branch=master)](https://travis-ci.org/tomcz/pemToJks)

# PEM to JKS

This is a Kotlin command line application that adds PEM-encoded certificates (in X.509 format)
Expand Down Expand Up @@ -42,7 +40,7 @@ Add a certificate chain and private key to a keystore:
NOTE: If the keystore does not exist, it will be created.

```
$> ./bin/pemToJks -cert cert.pem -key key.pem -alias useme -store test.jks
$> ./bin/pemToJks -cert cert.pem -key key.pem -alias useme -store test.jks
Reading certificate file
Reading key file
Verifying certificate against key
Expand All @@ -56,15 +54,15 @@ Done

### Requirements

1. Java 8
1. Java 11
2. Clone this project

### Build the application

Run the following from the root of the project:

```
./gradlew
make all
```

This creates a `build/distributions/pemToJks.zip` application bundle.

0 comments on commit 6b64e46

Please sign in to comment.