Skip to content

Commit

Permalink
rework build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Aug 18, 2023
1 parent 2fb9773 commit fb03ced
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
on: [ pull_request, push, workflow_dispatch ]

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Java 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: temurin
cache: gradle

- name: make gradle wrapper executable
run: chmod +x ./gradlew

- name: build
env:
PUBLISH_SUFFIX: snapshots
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
run: ./gradlew buildOrPublish

- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifact-${{ github.sha }}
path: build/libs/
33 changes: 0 additions & 33 deletions .github/workflows/gradle-publish.yml

This file was deleted.

0 comments on commit fb03ced

Please sign in to comment.