Skip to content

Commit

Permalink
Merge pull request #60 from Julius278/feature/463
Browse files Browse the repository at this point in the history
SDC-463, added new snapshotRepository entry into distributionManageme…
  • Loading branch information
cfries authored Apr 19, 2024
2 parents aeda7a3 + 173d2d6 commit 3e0d0f5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/upload_snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: finmath smart derivative contract

#only push new SNAPSHOTS from develop
on:
push:
branches:
- develop

jobs:
bCP1ld:
name: Java 17 build and unit testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 17
- name: upload SNAPSHOT to GitLab
run: mvn -s github_SNAPSHOT_settings.xml clean install deploy
25 changes: 25 additions & 0 deletions github_SNAPSHOT_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">

<servers>
<server>
<id>gitlab</id>
<configuration>
<httpHeaders>
<property>
<name>Deploy-Token</name>
<value>${DEPLOY_TOKEN}</value>
</property>
<property>
<name>Private-Token</name>
<value>${PRIVATE_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>

</settings>
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,10 @@
<!-- <id>finmath-site</id>-->
<!-- <url>scp://www.finmath.net/var/www/vhosts/finmath.net/httpdocs/finmath-smart-derivative-contract/</url>-->
<!-- </site>-->
<snapshotRepository>
<id>gitlab</id>
<url>https://gitlab.com/api/v4/projects/33978063/packages/maven</url>
</snapshotRepository>
</distributionManagement>

<scm>
Expand Down

0 comments on commit 3e0d0f5

Please sign in to comment.