Skip to content

Commit

Permalink
Set up Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
datatags committed Feb 5, 2024
1 parent ea99a65 commit d7a5b59
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 13 deletions.
20 changes: 13 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
version: 2
version: 2

updates:
- package-ecosystem: "gradle"
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
updates:
- package-ecosystem: "github-actions"
directory: /
schedule:
interval: daily
open-pull-requests-limit: 50

- package-ecosystem: "gradle"
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
24 changes: 24 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Java CI

on: [ push ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/[email protected] # https://github.com/actions/checkout/releases
- name: Set up JDK 8
uses: actions/[email protected] # https://github.com/actions/setup-java/releases
with:
java-version: 8
distribution: temurin
- name: Build with Gradle
run: ./gradlew obfuscate --no-daemon
- name: Upload build artifact
uses: actions/[email protected] # https://github.com/actions/upload-artifact/releases
with:
name: UltraCosmetics-gui-addon-dev
path: build/libs/UltraCosmetics-gui-addon-*.jar
14 changes: 8 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ repositories {
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url = 'https://repo.codemc.io/repository/maven-snapshots/'
}
maven {
url = 'https://jitpack.io'
}
}

dependencies {
compileOnly 'org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT'
implementation ('be.isach.UltraCosmetics:core:3.4') {
attributes {
// Depend on the version with dependencies shaded so we don't need to shade them separately
attribute(Bundling.BUNDLING_ATTRIBUTE, getObjects().named(Bundling, Bundling.SHADOWED))
}
}
// TODO: change this to a tag that works
implementation 'com.github.UltraCosmetics:UltraCosmetics:master-SNAPSHOT'
}

processResources {
Expand Down

0 comments on commit d7a5b59

Please sign in to comment.