Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Revert "Embed upload_action"
Browse files Browse the repository at this point in the history
This reverts commit 7b5da25.
  • Loading branch information
CiroZDP committed Sep 14, 2024
1 parent 7b5da25 commit fbc0efd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/actions/upload_build/action.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit fbc0efd

Please sign in to comment.