Skip to content

Commit c09392f

Browse files
committed
use our own settins.xml
1 parent 72b58de commit c09392f

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/test-main.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,36 @@ jobs:
2525

2626
- name: run maven with default build profile
2727
env:
28+
GITHUB_ACTOR: ${{ github.actor }}
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
run: mvn --batch-mode --update-snapshots verify
30+
run: mvn --batch-mode --update-snapshots -s ci_settings.xml verify
3031

3132
- name: run maven with build profile for oxygen 23
3233
env:
34+
GITHUB_ACTOR: ${{ github.actor }}
3335
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
run: mvn -Doxygen.version=23 --batch-mode --update-snapshots clean verify
36+
run: mvn -Doxygen.version=23 --batch-mode --update-snapshots -s ci_settings.xml clean verify
3537

3638
- name: run maven with build profile for oxygen 24
3739
env:
40+
GITHUB_ACTOR: ${{ github.actor }}
3841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
run: mvn -Doxygen.version=24 --batch-mode --update-snapshots clean verify
42+
run: mvn -Doxygen.version=24 --batch-mode --update-snapshots -s ci_settings.xml clean verify
4043

4144
- name: run maven with build profile for oxygen 25
4245
env:
46+
GITHUB_ACTOR: ${{ github.actor }}
4347
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
run: mvn -Doxygen.version=25 --batch-mode --update-snapshots clean verify
48+
run: mvn -Doxygen.version=25 --batch-mode --update-snapshots -s ci_settings.xml clean verify
4549

4650
- name: run maven with build profile for oxygen 26
4751
env:
52+
GITHUB_ACTOR: ${{ github.actor }}
4853
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
run: mvn -Doxygen.version=26 --batch-mode --update-snapshots clean verify
54+
run: mvn -Doxygen.version=26 --batch-mode --update-snapshots -s ci_settings.xml clean verify
5055

5156
- name: run maven with build profile for oxygen 27
5257
env:
58+
GITHUB_ACTOR: ${{ github.actor }}
5359
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
run: mvn -Doxygen.version=27 --batch-mode --update-snapshots clean verify
60+
run: mvn -Doxygen.version=27 --batch-mode --update-snapshots -s ci_settings.xml clean verify

ci_settings.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,16 @@
33
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
44
<servers>
55
<server>
6-
<id>gitlab-maven</id>
7-
<configuration>
8-
<httpHeaders>
9-
<property>
10-
<name>Job-Token</name>
11-
<value>${env.CI_JOB_TOKEN}</value>
12-
</property>
13-
</httpHeaders>
14-
</configuration>
6+
<id>github</id>
7+
<username>${env.GITHUB_ACTOR}</username>
8+
<password>${env.GITHUB_TOKEN}</password>
159
</server>
1610
<server>
1711
<id>github-scdh-x2tei-transformations</id>
1812
<configuration>
1913
<httpHeaders>
2014
<property>
21-
<name>authorization</name>
15+
<name>Authorization</name>
2216
<value>Bearer ${env.GITHUB_TOKEN}</value>
2317
</property>
2418
</httpHeaders>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
<url>https://www.oxygenxml.com/maven/</url>
6060
</repository>
6161
<repository>
62-
<id>github</id>
63-
<url>https://maven.pkg.github.com/SCDH/</url>
62+
<id>github-scdh-x2tei-transformations</id>
63+
<url>https://maven.pkg.github.com/SCDH/x2tei-transformations</url>
6464
</repository>
6565
</repositories>
6666

0 commit comments

Comments
 (0)