GTNH-Actions-Workflows/.github/workflows/upload-individual-jar.yml
Robert 57b9aaba93
build-and-test: individual jar uploads and spotless PR toggle (#62)
Co-authored-by: ah-OOG-ah <75745146+ah-OOG-ah@users.noreply.github.com>
2026-05-21 17:43:45 -04:00

29 lines
951 B
YAML

name: Upload individual JAR
on:
workflow_call:
inputs:
jar_path:
required: true
type: string
jobs:
upload-individual-jar:
runs-on: ubuntu-24.04
steps:
# In order to run this for all jars, we have to call it individually for each jar, on a separate job.
# Because dynamically running this workflow file requires a unique job run, we can't just grab the jars directly because they're already gone by then.
# We have to do this because unzipped upload can only be ran on one file (arbitrary restrictions 💢)
- name: Extract archive to retrieve artifact
uses: actions/download-artifact@v8
with:
name: ${{ github.repository_id }}-build-libs
path: build/libs
- name: Upload individual compilation artifact
uses: actions/upload-artifact@v7
with:
path: ${{ inputs.jar_path }}
retention-days: 90
archive: false