Skip to content

Commit

Permalink
Making generic template
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhadaR committed Dec 21, 2022
1 parent 0a8a1c3 commit 112c7d3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ jobs:
- run: |
mvn --batch-mode --update-snapshots verify
mkdir staging
cp target/hello-world-maven-0.2.jar staging
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: staging/hello-world-maven-0.2.jar
# cp target/hello-world-maven-0.2.jar staging
cp target/*.jar staging
# - name: Check file existence
# id: check_files
# uses: andstor/file-existence-action@v1
# with:
# files: staging/hello-world-maven-0.2.jar

- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
Expand All @@ -157,11 +158,11 @@ jobs:
needs: Upload_Artifact

steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
name: Package
path: staging
# - uses: actions/checkout@v2
# - uses: actions/download-artifact@v1
# with:
# name: Package
# path: staging
# - name: 'Create settings.xml'
# uses: whelk-io/maven-settings-xml-action@v4
# with:
Expand Down
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
Expand All @@ -105,4 +110,13 @@
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
</plugins>
</reporting>
</project>

0 comments on commit 112c7d3

Please sign in to comment.