Skip to content

Commit

Permalink
Adding workflow to publish to Exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeacjones committed Jun 8, 2021
1 parent 135040d commit e426df8
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Module

on:
push:
branches:
- master

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: main
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build and deploy artifact
run: cd main && mvn clean deploy -s .maven/settings.xml
env:
EXCHANGE_USERNAME: ${{ secrets.EXCHANGE_USERNAME }}
EXCHANGE_PASSWORD: ${{ secrets.EXCHANGE_PASSWORD }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
63 changes: 63 additions & 0 deletions .maven/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<settings>
<servers>
<server>
<id>MuleRepository</id>
<username>${NEXUS_USERNAME}</username>
<password>${NEXUS_PASSWORD}</password>
</server>
<server>
<id>exchange-repository</id>
<username>${EXCHANGE_USERNAME}</username>
<password>${EXCHANGE_PASSWORD}</password>
</server>
<server>
<id>anypoint-exchange-v2</id>
<username>${EXCHANGE_USERNAME}</username>
<password>${EXCHANGE_PASSWORD}</password>
</server>
</servers>
<pluginGroups>
<pluginGroup>org.mule.tools</pluginGroup>
</pluginGroups>
<profiles>
<profile>
<id>mule-extra-repos</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>mule-public</id>
<url>https://repository.mulesoft.org/nexus/content/repositories/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>mule-public</id>
<url>https://repository.mulesoft.org/nexus/content/repositories/public</url>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>Mule</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>MuleRepository</id>
<name>MuleRepository</name>
<url>https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</settings>

0 comments on commit e426df8

Please sign in to comment.