This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
Publish Artifacts To Nexus -- main #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: self-hosted | |
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/[email protected] | |
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}} | |
is_self_hosted: 'true' |