forked from ikmdev/tinkar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (24 loc) · 865 Bytes
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish Artifacts Workflow
run-name: 'Publish Artifacts To Nexus -- ${{github.event.workflow_run.head_branch}}'
on:
workflow_run:
workflows:
- Build Workflow
types:
- completed
jobs:
publish-artifacts:
name: Publish Artifacts
runs-on: ubuntu-24.04
if: github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'ikmdev'
steps:
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
- name: Deploy Artifacts To Nexus
uses: ikmdev/maven-nexus-deploy-action@main
with:
nexus_repo_password: ${{secrets.EC2_NEXUS_PASSWORD}}
repo_name: ${{github.event.workflow_run.head_repository.full_name}}
branch_name: ${{github.event.workflow_run.head_branch}}