Skip to content

Commit da7cace

Browse files
committed
Clean
1 parent 4c17c50 commit da7cace

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -812,17 +812,15 @@ deploy_artifacts_to_github:
812812
rules:
813813
- if: '$POPULATE_CACHE'
814814
when: never
815-
# - if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
816-
# when: on_success
817-
- when: manual # DEBUG: Allow manual trigger
818-
allow_failure: true
815+
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
816+
when: on_success
819817

820818
# Requires the deploy_to_maven_central job to have run first (the UP-TO-DATE gradle check across jobs is broken)
821819
# This will deploy the artifacts built from the publishToSonatype task to the GitHub release
822-
needs: [] # DEBUG: Enforce no dependencies for now to run immediately
823-
# - job: deploy_to_maven_central
824-
# # The deploy_to_maven_central job is not run for release candidate versions
825-
# optional: true
820+
needs:
821+
- job: deploy_to_maven_central
822+
# The deploy_to_maven_central job is not run for release candidate versions
823+
optional: true
826824

827825
before_script:
828826
# Get a token
@@ -833,12 +831,12 @@ deploy_artifacts_to_github:
833831
script:
834832
- gh auth login --with-token < github-token.txt
835833
- gh auth status # Maybe helpful to have this output in logs?
836-
# - export VERSION=${CI_COMMIT_TAG##v} # remove "v" from front of tag to get version
837-
# - cp workspace/dd-java-agent/build/libs/dd-java-agent-${VERSION}.jar workspace/dd-java-agent/build/libs/dd-java-agent.jar # we upload two filenames
838-
# - gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-java-agent/build/libs/dd-java-agent.jar
839-
# - gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-java-agent/build/libs/dd-java-agent-${VERSION}.jar
840-
# - gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-trace-api/build/libs/dd-trace-api-${VERSION}.jar
841-
# - gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-trace-ot/build/libs/dd-trace-ot-${VERSION}.jar
834+
- export VERSION=${CI_COMMIT_TAG##v} # remove "v" from front of tag to get version
835+
- cp workspace/dd-java-agent/build/libs/dd-java-agent-${VERSION}.jar workspace/dd-java-agent/build/libs/dd-java-agent.jar # we upload two filenames
836+
- gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-java-agent/build/libs/dd-java-agent.jar
837+
- gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-java-agent/build/libs/dd-java-agent-${VERSION}.jar
838+
- gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-trace-api/build/libs/dd-trace-api-${VERSION}.jar
839+
- gh release upload --clobber --repo DataDog/dd-trace-java $CI_COMMIT_TAG workspace/dd-trace-ot/build/libs/dd-trace-ot-${VERSION}.jar
842840

843841
after_script:
844842
# Revoke the token after usage

0 commit comments

Comments
 (0)