Skip to content

Commit

Permalink
Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
p0t4t0sandwich committed Aug 4, 2023
1 parent b6fbbb2 commit a9fd930
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Cache Gradle User Files
uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-user-home
- name: Cache Gradle Files
uses: actions/cache@v1
with:
path: ./.gradle
key: ${{ runner.os }}-gradle-file
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: |
./gradlew cleanBuild remapSpigotJar idea --no-daemon -i --stacktrace --refresh-dependencies
./gradlew build collect --no-daemon -i --stacktrace
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: TaterLib
path: ./target/*

0 comments on commit a9fd930

Please sign in to comment.