Skip to content

Commit 56879f9

Browse files
committed
Download sqrl snapshots from github packages
Signed-off-by: Marvin Froeder <[email protected]>
1 parent 2146e08 commit 56879f9

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

.github/workflows/maven.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ jobs:
2525
set -x
2626
./mvnw -B org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies
2727
28+
- name: Generate settings.xml
29+
run: |
30+
mkdir -p ~/.m2
31+
echo "<settings>
32+
<servers>
33+
<server>
34+
<id>github</id>
35+
<username>${{ github.actor }}</username>
36+
<password>${{ secrets.GITHUB_TOKEN }}</password>
37+
</server>
38+
</servers>
39+
</settings>" > ~/.m2/settings.xml
40+
2841
- name: Build with Maven
2942
env:
3043
SPRING_AI_OPENAI_API_KEY: ${{ secrets.SPRING_AI_OPENAI_API_KEY }}
@@ -39,20 +52,6 @@ jobs:
3952
echo "default-key $(gpg --list-keys --with-colons | grep pub | cut -d':' -f5)" >> ~/.gnupg/gpg.conf
4053
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
4154
42-
- name: Generate settings.xml
43-
if: github.ref == 'refs/heads/main'
44-
run: |
45-
mkdir -p ~/.m2
46-
echo "<settings>
47-
<servers>
48-
<server>
49-
<id>github</id>
50-
<username>${{ github.actor }}</username>
51-
<password>${{ secrets.GITHUB_TOKEN }}</password>
52-
</server>
53-
</servers>
54-
</settings>" > ~/.m2/settings.xml
55-
5655
- name: Deploy Snapshot (only for main)
5756
if: github.ref == 'refs/heads/main'
5857
run: |

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@
8181
<surefire-plugin.version>3.5.2</surefire-plugin.version>
8282
</properties>
8383

84+
<repositories>
85+
<repository>
86+
<releases>
87+
<enabled>false</enabled>
88+
</releases>
89+
<snapshots>
90+
<enabled>true</enabled>
91+
</snapshots>
92+
<id>github</id>
93+
<url>https://maven.pkg.github.com/DataSQRL/sqrl</url>
94+
</repository>
95+
</repositories>
96+
8497
<dependencyManagement>
8598
<dependencies>
8699
<dependency>

0 commit comments

Comments
 (0)