Fix artifact config
This commit is contained in:
parent
8f8ff64ac2
commit
555af4beae
@ -31,12 +31,12 @@ jobs:
|
||||
GITEA_ARTIFACT_SERVER: ${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/generic/${PACKAGE_NAME}
|
||||
API_TOKEN: ${{ secrets.API_TOKEN }} # Replace with a Gitea token stored in repository secrets
|
||||
run: |
|
||||
if [ -f ./eia-client ]; then
|
||||
if [ -f ./${BINARY_PATH}/${BINARY_NAME} ]; then
|
||||
curl -X PUT --user ${GITHUB_REPOSITORY_OWNER}:${API_TOKEN} \
|
||||
-F "artifact=@./${BINARY_PATH}/${BINARY_NAME}" \
|
||||
"$GITEA_ARTIFACT_SERVER/${{ github.ref_name }}/${BINARY_NAME}"
|
||||
else
|
||||
echo "Error: Binary eia-client not found."
|
||||
echo "Error: Binary ./${BINARY_PATH}/${BINARY_NAME} not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user