Skip to content

Update actions/upload-artifact action to v4.6.0 #415

Update actions/upload-artifact action to v4.6.0

Update actions/upload-artifact action to v4.6.0 #415

Workflow file for this run

name: Build Gradle
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
permissions:
actions: read
steps:
# https://github.com/actions/checkout
- name: Check out Git repository
uses: actions/[email protected]
# https://github.com/actions/cache
- name: Cache Gradle
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# https://github.com/gradle/wrapper-validation-action
- name: Wrapper validation
uses: gradle/actions/[email protected]
# https://github.com/gradle/gradle-build-action
- name: Setup Gradle
uses: gradle/actions/[email protected]
# https://github.com/actions/setup-java
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
java-package: jdk
architecture: x64
cache: gradle
- name: Configure Git
run: git config --global user.name "Github Actions" && git config --global user.email "[email protected]"
- name: Make Gradlew executable
run: chmod +x ./gradlew
- name: Build project
run: ./gradlew shadowJar --no-daemon
# https://github.com/actions/upload-artifact
- name: Upload build artifact
uses: actions/[email protected]
with:
name: UltraCosmetics-GUI-Addon
path: build/libs/UltraCosmetics-gui-addon-*.jar