Skip to content

Commit 88e2d9c

Browse files
Setup actions for building
1 parent a383503 commit 88e2d9c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Build
9+
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
environment: build
18+
permissions:
19+
contents: read
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up JDK 21
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '21'
27+
distribution: 'temurin'
28+
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
31+
32+
- name: Build with Gradle Wrapper
33+
run: ./gradlew build publish -Pmaven_username=${{ secrets.MAVEN_USERNAME }} -Pmaven_password=${{ secrets.MAVEN_PASSWORD }}

0 commit comments

Comments
 (0)