Skip to content

Commit

Permalink
build: Use GitHub Actions for building and publishing
Browse files Browse the repository at this point in the history
GitHub: #16
  • Loading branch information
Johni0702 authored Sep 13, 2023
1 parent 99c1150 commit 4a3c7ea
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle

- name: Build
run: ./gradlew build --stacktrace
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle

- name: Publish
run: ./gradlew publish --stacktrace
env:
ORG_GRADLE_PROJECT_nexus_user: ${{ secrets.NEXUS_USER }}
ORG_GRADLE_PROJECT_nexus_password: ${{ secrets.NEXUS_PASSWORD }}

0 comments on commit 4a3c7ea

Please sign in to comment.