Skip to content

Commit

Permalink
build: add build & release-please workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 authored May 4, 2024
1 parent 4b20e04 commit 7870b28
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: main

on: [pull_request, push]

jobs:
build:
strategy:
matrix:
java: [ 21 ]
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: setup gradle
uses: gradle/actions/setup-gradle@v3
- name: execute gradle build
run: ./gradlew build

release-please:
needs: [ build ]
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: java-yoshi

0 comments on commit 7870b28

Please sign in to comment.