Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
VermeilChan committed Jan 30, 2024
1 parent 58a1580 commit c2ba239
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
name: Run Gradle Build
on: [push, pull_request]
on:
- push
- pull_request

jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/setup-java@v3
name: Setup Java
uses: actions/[email protected]

- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: Execute Gradle build
run: ./gradlew build
- uses: actions/upload-artifact@v3
name: Upload built mod JAR

- name: Upload built mod JAR
uses: actions/[email protected]
with:
name: mod-jar
path: build/libs/*.jar
path: build/libs/*.jar
4 changes: 2 additions & 2 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/checkout@v4.1.1
- uses: gradle/wrapper-validation-action@v2.0.0-rc.1
4 changes: 2 additions & 2 deletions .github/workflows/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.event.repository.name != 'Forge1.8.9Template'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
- name: Initialize Repo
run: |
git config --local user.email "[email protected]"
Expand All @@ -32,7 +32,7 @@ jobs:
Set modid to $modid
EOF
- name: Push changes
uses: ad-m/github-push-action@v0.6.0
uses: ad-m/github-push-action@v0.8.0
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c2ba239

Please sign in to comment.