File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,26 @@ jobs:
28
28
uses : gradle/gradle-build-action@v2
29
29
- name : Use tag as version
30
30
run : echo "${GITHUB_REF#refs/*/}" > version.txt
31
- - name : Build and Publish Artifacts
31
+ # Perform the build in a separate call to avoid trying to publish
32
+ # something where the build already failed partially. This could happen
33
+ # due to the use of the --continue flag in the publish step.
34
+ - name : Build
35
+ run : >-
36
+ ./gradlew --build-cache build
37
+ --info
38
+ -PciBuild=true
39
+ - name : Publish
32
40
# We run gradle with --info to debug the ongoing random publishing
33
41
# issues. Gradle would log upload retries on info level:
34
42
# https://github.com/gradle/gradle/blob/2e843f089f969940e505e69eb0742ed4fbf67993/platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetry.java#L64
35
43
# Maybe retries are the source of our duplicate publication attempts.
44
+ #
45
+ # We use --continue to work around the commonly seen 403 issues.
46
+ # Usually, the artifact that cannot be uploaded is strangely already
47
+ # in the repo. As the result, by ignoring the exception, we should end
48
+ # up with a working release in most cases.
36
49
run : >-
37
- ./gradlew --build-cache build publish
50
+ ./gradlew --build-cache publish
38
51
--info
39
52
-PciBuild=true
40
53
-Partifacts.itemis.cloud.user=${{ secrets.ARTIFACTS_ITEMIS_CLOUD_USER }}
You can’t perform that action at this time.
0 commit comments