Skip to content

Commit 01f48dd

Browse files
committed
Configure deploy to Artifactory
1 parent 9ea25fb commit 01f48dd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/push.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,32 @@ jobs:
5959
-Dsonar.host.url=https://sonarcloud.io \
6060
-Dsonar.token=${SONAR_TOKEN}
6161
62+
deploy-artifactory:
63+
#if: github.repository_owner == 'entur' && github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'ci skip')
64+
needs: [maven-package]
65+
runs-on: ubuntu-24.04
66+
steps:
67+
- uses: actions/checkout@v4
68+
with:
69+
fetch-depth: 0
70+
- name: Copy maven settings
71+
run: |
72+
wget https://raw.githubusercontent.com/entur/ror-maven-settings/master/.m2/settings.xml -O .github/workflows/settings.xml
73+
- uses: actions/setup-java@v4
74+
with:
75+
java-version: 17.0.13
76+
distribution: liberica
77+
- name: Cache Maven dependencies
78+
uses: actions/cache@v4
79+
with:
80+
path: ~/.m2/repository
81+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
82+
restore-keys: |
83+
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
84+
${{ runner.os }}-maven-
85+
${{ runner.os }}-
86+
87+
- name: Deploy to Entur Artifactory
88+
run: mvn deploy -s .github/workflows/settings.xml -DskipTests
89+
90+

0 commit comments

Comments
 (0)