Skip to content

Commit 6db2cbe

Browse files
Add publish step on merge to main branch (#1)
1 parent 83523d6 commit 6db2cbe

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/on-merge.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,22 @@ jobs:
100100
# reporter: java-junit
101101
# fail-on-error: 'false'
102102

103-
# publish:
104-
# name: Publish module
105-
# needs: [integration-tests-standalone]
106-
# # Update this to be the branch you want to publish from
107-
# # Note: to be verified but it might be a redundant with branch restriction at the top
108-
# # If it is, please remove it.
109-
# if: github.ref == 'refs/heads/main'
110-
# runs-on: ubuntu-latest
111-
# container:
112-
# image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
113-
# credentials:
114-
# username: ${{ secrets.DOCKERHUB_USERNAME }}
115-
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
116-
# steps:
117-
# - uses: actions/checkout@v2
118-
# - uses: jahia/jahia-modules-action/publish@v1
119-
# with:
120-
# nexus_username: ${{ secrets.NEXUS_USERNAME }}
121-
# nexus_password: ${{ secrets.NEXUS_PASSWORD }}
103+
publish:
104+
name: Publish module
105+
needs: [build]
106+
# Update this to be the branch you want to publish from
107+
# Note: to be verified but it might be a redundant with branch restriction at the top
108+
# If it is, please remove it.
109+
if: github.ref == 'refs/heads/main'
110+
runs-on: ubuntu-latest
111+
container:
112+
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
113+
credentials:
114+
username: ${{ secrets.DOCKERHUB_USERNAME }}
115+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
116+
steps:
117+
- uses: actions/checkout@v4
118+
- uses: jahia/jahia-modules-action/publish@v2
119+
with:
120+
nexus_username: ${{ secrets.NEXUS_USERNAME }}
121+
nexus_password: ${{ secrets.NEXUS_PASSWORD }}

0 commit comments

Comments
 (0)