Skip to content

Commit

Permalink
Store artifact for inspection; remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ivo.liondov authored and ivo.liondov committed Dec 28, 2024
1 parent 26b6a16 commit 90e3f23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ jobs:
- name: Publish Package
run: cd .maven && ./maven-publish.sh


- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: full-repo-artifact-${{ github.ref_name }}
path: ${{ github.workspace }}
7 changes: 3 additions & 4 deletions .maven/maven-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ if [ -z "$MAVEN_PASSWORD" ]; then
echo "Error: MAVEN_PASSWORD is not set. This script requires a password to be set."
exit 1
fi

echo ${MAVEN_USERNAME} > maven_user.txt
echo ${MAVEN_PASSWORD} > maven_password.txt
# The body artifact name
BODY_ARTIFACT="service-okhttp-${CURRENT_TAG}.zip"
echo "MAVEN_USERNAME: ${MAVEN_USERNAME}"
echo "MAVEN_PASSWORD: ${MAVEN_PASSWORD}"

# The username:password for the maven repository
MAVEN_CREDENTIALS=$(printf "${MAVEN_USERNAME}:${MAVEN_PASSWORD}" | base64)
echo "MAVEN_CREDENTIALS: ${MAVEN_CREDENTIALS}"
echo ${MAVEN_CREDENTIALS} > maven-credentials.txt
# Publish the body artifact
curl --request POST \
--verbose \
Expand Down

0 comments on commit 90e3f23

Please sign in to comment.