File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 66jobs :
77 build :
88 runs-on : ubuntu-24.04
9- container :
10- image : python:2.7.18
11- environment : ${{ (github.repository == 'jacoco/www.eclemma.org' && github.ref == 'refs/heads/master') && 'sites' || null }}
9+ environment : ${{ (github.repository == 'jacoco/www.eclemma.org' && github.ref == 'refs/heads/snapshot') && 'sites' || null }}
1210 steps :
1311 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1412 with :
1513 fetch-depth : 0
1614 - name : ' Build'
17- run : ./render.sh
15+ run : |
16+ docker run \
17+ --user $(id -u):$(id -g) \
18+ -v "/var/run/docker.sock":"/var/run/docker.sock" \
19+ -v ${{ github.workspace }}:/work \
20+ -w /work \
21+ --entrypoint bash \
22+ python:2.7.18 \
23+ -c /work/render.sh
1824 - name : ' Deploy'
19- if : ${{ (github.repository == 'jacoco/www.eclemma.org' && github.ref == 'refs/heads/master ') }}
25+ if : ${{ (github.repository == 'jacoco/www.eclemma.org' && github.ref == 'refs/heads/snapshot ') }}
2026 env :
2127 GH_TOKEN : ${{ secrets.GH_TOKEN }}
2228 GIT_COMMITTER_NAME : ${{ secrets.GIT_COMMITTER_NAME }}
2632 RESULT_DIR=$WORKING_DIR/result
2733 TEMP=/tmp/jacoco-snapshot
2834 mkdir $TEMP
29- wget -O $TEMP/download.zip "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.jacoco&a=jacoco&e=zip&v=LATEST"
30- unzip $TEMP/download.zip -d $TEMP
35+ JACOCO_VERSION=0.8.14-SNAPSHOT
36+ mvn -V -B -e --no-transfer-progress \
37+ dependency:get \
38+ -Dtransitive=false \
39+ -DremoteRepositories=snapshot::default::https://central.sonatype.com/repository/maven-snapshots/ \
40+ -Dartifact=org.jacoco:jacoco:$JACOCO_VERSION:zip
41+ unzip $HOME/.m2/repository/org/jacoco/jacoco/$JACOCO_VERSION/jacoco-$JACOCO_VERSION.zip -d $TEMP
3142
3243 TARGET=$RESULT_DIR/jacoco/trunk
3344 mkdir $TARGET
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ <h2>Snapshot Builds</h2>
3535
3636< ul >
3737 < li > < b > < a href ="http://www.jacoco.org/jacoco/trunk/doc/ "> Documentation</ a > </ b > </ li >
38- < li > < b > < a href ="https://oss .sonatype.org /service/local/artifact/maven/redirect?r= snapshots&g= org. jacoco&a= jacoco&e=zip&v=LATEST "> Download</ a >
38+ < li > < b > < a href ="https://central .sonatype.com /service/rest/repository/browse/maven- snapshots/ org/ jacoco/ jacoco/ "> Download</ a >
3939 (< a href ="http://www.jacoco.org/jacoco/trunk/doc/repo.html "> Maven Repository</ a > )</ b > </ li >
4040 < li > < b > < a href ="http://www.jacoco.org/jacoco/trunk/coverage/ "> Coverage Report</ a > </ b > </ li >
4141</ ul >
You can’t perform that action at this time.
0 commit comments