Skip to content

Commit

Permalink
Add workflows, set project id, and add gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed May 7, 2024
1 parent 7746a29 commit 79a7cb9
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build on Push
on:
- push
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout Commit
uses: actions/checkout@v2
- name: Fetch Tags
run: git fetch --unshallow --tags -f
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 21
- name: Build Gradle
uses: eskatos/gradle-command-action@v1
with:
arguments: check
19 changes: 19 additions & 0 deletions .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build on Pull Request
on:
- pull_request
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout Commit
uses: actions/checkout@v2
- name: Fetch Tags
run: git fetch --unshallow --tags -f
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 21
- name: Build Gradle
uses: eskatos/gradle-command-action@v1
with:
arguments: check
34 changes: 34 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish
on:
push:
tags:
- '*'
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout Commit
uses: actions/checkout@v2
with:
submodules: recursive
- name: Fetch Tags
run: git fetch --unshallow --tags -f
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 21
- name: Publish Maven Jar
env:
ACCESS_KEY: ${{ secrets.ACCESS_KEY }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: eskatos/gradle-command-action@v1
with:
arguments: build publish
- name: Publish Modrinth Jar
env:
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: eskatos/gradle-command-action@v1
with:
arguments: modrinth
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ org.gradle.daemon=false

# Publishing
modrinth_loader_type=fabric
modrinth_project_id=
modrinth_project_id=u4AW2clL

# Dependencies
modmenu_version=10.0.0-beta.1
minelp_version=4.11.8-beta.7
minelp_version=4.11.8+1.20.5
smys_version=1.10.0+1.20.5
cicada_version=0.7.1+1.20.5-and-above
# https://github.com/OnyxStudios/Cardinal-Components-API/releases
Expand Down
Binary file added sliders.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79a7cb9

Please sign in to comment.