Skip to content

Commit

Permalink
updated nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Feb 28, 2025
1 parent 561f6d0 commit 358470a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle

name: GT4R 1.18
name: GT4 Reimagined Nightly

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

jobs:
build:
Expand All @@ -35,30 +35,28 @@ jobs:
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Setup Gradle Dependencies Cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.properties') }}
- name: Build with Gradle
run: ./gradlew build --stacktrace
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Upload Forge Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: GT4R-forge-nightly-${{ steps.vars.outputs.sha_short }}
name: GT4R-nightly-${{ steps.vars.outputs.sha_short }}
path: forge/build/libs
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Fabric Artifact
uses: actions/upload-artifact@v4
with:
name: GT4R-fabric-nightly-${{ steps.vars.outputs.sha_short }}
path: fabric/build/libs
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup Gradle Cache
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
Expand Down

0 comments on commit 358470a

Please sign in to comment.