mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2026-05-30 13:59:55 +02:00
29 lines
951 B
YAML
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
|