Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotori316 committed Apr 21, 2024
1 parent af17d91 commit c79a0d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,34 @@ name: Build Test
on:
push:
branches:
- "1.20"
- "1.20.5"
tags:
- "!*"

jobs:
check-forge:
runs-on: ubuntu-latest
if: false
env:
DISABLE_NEO_FORGE: 'true'
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
- name: Set executable
run: chmod +x ./gradlew
- name: Get cache
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
- run: ./gradlew data
- run: ./gradlew test build
- name: Publish
uses: actions/upload-artifact@v3
with:
path: '*/build/libs/*'
name: ${{ github.event.repository.name }}-Forge-${{ github.run_number }}
name: '${{ github.event.repository.name }}-Forge-${{ github.run_number }}'
retention-days: 3

check-neoforge:
Expand All @@ -37,19 +39,20 @@ jobs:
DISABLE_FORGE: 'true'
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
- name: Set executable
run: chmod +x ./gradlew
- name: Get cache
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
- run: ./gradlew data
- run: ./gradlew test build
- name: Publish
uses: actions/upload-artifact@v3
with:
path: '*/build/libs/*'
name: ${{ github.event.repository.name }}-NeoForge-${{ github.run_number }}
name: '${{ github.event.repository.name }}-NeoForge-${{ github.run_number }}'
retention-days: 3
4 changes: 2 additions & 2 deletions .github/workflows/release_forge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
- run: chmod +x ./gradlew
- name: Enable daemon
run: sed -i -e 's/org.gradle.daemon=false/org.gradle.daemon=true/' gradle.properties
Expand Down

0 comments on commit c79a0d1

Please sign in to comment.