Skip to content

Commit

Permalink
Rework Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkellnhofer committed Jan 10, 2024
1 parent c9b930b commit 833a846
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
name: Build
name: Build Badge

on:
push:
branches:
- 'develop'
release:
types: [created]

jobs:
build:

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Build
run: mvn clean package
run: mvn clean package -DskipTests
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
name: Build

on:
release:
types: [created]
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Build
run: mvn clean package -DskipTests
run: mvn clean package
5 changes: 3 additions & 2 deletions .github/workflows/maven-central-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ jobs:
build:

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
Expand All @@ -25,7 +26,7 @@ jobs:
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN

- name: Install gpg secret key
- name: Install GPG secret key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: Unit Tests Badge

on:
release:
Expand All @@ -8,14 +8,15 @@ jobs:
build:

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![siwe-java Logo](header.png "siwe-java Logo")

[![Build](https://github.com/moonstoneid/siwe-java/actions/workflows/build.yml/badge.svg)](https://github.com/moonstoneid/siwe-java/actions/workflows/build.yml)
[![Unit Tests](https://github.com/moonstoneid/siwe-java/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/moonstoneid/siwe-java/actions/workflows/unit-tests.yml)
[![Build](https://github.com/moonstoneid/siwe-java/actions/workflows/build-badge.yml/badge.svg)](https://github.com/moonstoneid/siwe-java/actions/workflows/build-badge.yml)
[![Unit Tests](https://github.com/moonstoneid/siwe-java/actions/workflows/unit-tests-badge.yml/badge.svg)](https://github.com/moonstoneid/siwe-java/actions/workflows/unit-tests-badge.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.moonstoneid/siwe-java/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.moonstoneid/siwe-java?style=flat)
# Siwe-java

Expand Down

0 comments on commit 833a846

Please sign in to comment.