From fbc0efd0a6cfe623664ed404aeb5fa48db267161 Mon Sep 17 00:00:00 2001 From: Ciro Diaz Date: Sat, 14 Sep 2024 15:41:39 +0200 Subject: [PATCH] Revert "Embed `upload_action`" This reverts commit 7b5da254a3552e27a98057efdb1d8e917f3c706a. --- .github/actions/upload_build/action.yml | 19 +++++++++++++++++++ .github/workflows/maven.yml | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .github/actions/upload_build/action.yml diff --git a/.github/actions/upload_build/action.yml b/.github/actions/upload_build/action.yml new file mode 100644 index 0000000..7609946 --- /dev/null +++ b/.github/actions/upload_build/action.yml @@ -0,0 +1,19 @@ +name: Upload binary +description: Uploads a compiled binary +inputs: + SOURCE_FILE: + description: 'Path to file to upload' + required: true + type: string + DEST_NAME: + description: 'Name to use for the uploaded artifact' + required: true + type: string + +runs: + using: "composite" + steps: + - uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.DEST_NAME }} + path: ${{ inputs.SOURCE_FILE }} \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a11b365..0bd1863 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -40,8 +40,8 @@ jobs: MAVEN_PASSWORD: ${{ secrets.SECRET_TOKEN }} GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }} - - uses: actions/upload-artifact@v4 + - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: - name: 'target/client.jar' - path: 'client.jar' + SOURCE_FILE: 'target/client.jar' + DEST_NAME: 'client.jar'