Skip to content

Commit

Permalink
Workflow fix (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmanko authored Oct 12, 2022
1 parent dd93cff commit f5b5bc2
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ main ]
release:
types: [ created ]
types: [ published ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -52,4 +52,4 @@ jobs:
run: mvn -P github-packages -DskipTests -Dfindbugs.skip=true -Dpmd.skip=true -Dcpd.skip=true -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'release' && github.event.action == 'created'
if: github.event_name == 'release' && github.event.action == 'published'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ nb-configuration.xml
##############################
.DS_Store

.flattened-pom.xml
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>labonfhir</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>labonfhir-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.openmrs.module</groupId>
<artifactId>labonfhir</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>labonfhir-omod</artifactId>
Expand Down
31 changes: 29 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>org.openmrs.module</groupId>
<artifactId>labonfhir</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>${revision}</version>
<packaging>pom</packaging>
<name>Lab on FHIR</name>
<description>A module to support lab order communication between OpenMRS and an LIS like OpenELIS using FHIR-based
Expand Down Expand Up @@ -69,6 +69,33 @@
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
Expand Down Expand Up @@ -198,7 +225,7 @@
</profile>
</profiles>
<properties>
<moduleVersion>1.0.0-SNAPSHOT</moduleVersion>
<revision>1.2.0</revision>
<fhir2Version>1.4.0</fhir2Version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down

0 comments on commit f5b5bc2

Please sign in to comment.