Skip to content

Commit 351462b

Browse files
authored
Update maven-deploy.yaml
1 parent 8ac7f73 commit 351462b

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/maven-deploy.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,26 @@ on:
1010

1111
jobs:
1212
mvn:
13-
uses: netcracker/qubership-workflow-hub/.github/workflows/maven-publish.yml@main
14-
with:
15-
maven_command: "--batch-mode deploy -Dgpg.skip=true"
16-
java_version: 21
17-
server_id: github
18-
secrets:
19-
maven_password: ${{ secrets.GITHUB_TOKEN }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: "Checkout code"
16+
uses: actions/checkout@v4
17+
- name: "Configure maven GitHub repository server"
18+
uses: s4u/maven-settings-action@v3.1.0
19+
with:
20+
repositories: '[{"id":"github","name":"github","url":"https://maven.pkg.github.com/$${{ github.repository }}","snapshots":{"enabled":true}}]'
21+
- name: "Maven deploy"
22+
run: |
23+
mvn --batch-mode deploy -Dgpg.skip=true
24+
# :deploy-file \
25+
# -Durl=http://repo.veggiecorp.com/artifactory/ext-release-local \
26+
# -Dfile=crypto.jar \
27+
# -DpomFile=pom.xml \
28+
# -DrepositoryId=github
29+
# uses: netcracker/qubership-workflow-hub/.github/workflows/maven-publish.yml@main
30+
# with:
31+
# maven_command: "--batch-mode deploy -Dgpg.skip=true"
32+
# java_version: 21
33+
# server_id: github
34+
# secrets:
35+
# maven_password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)