refactor: tidy up

main
sgoudham 2 years ago
parent 603bb0e33e
commit 442ce80d50
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -33,14 +33,6 @@ jobs:
- name: Test - name: Test
run: mvn test run: mvn test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./target/site/jacoco
files: jacoco.xml
fail_ci_if_error: false
- name: Retrieve Name & Version - name: Retrieve Name & Version
run: | run: |
echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
@ -63,3 +55,9 @@ jobs:
with: with:
name: ${{ env.NAME }}-${{ env.VERSION }}-sources.jar name: ${{ env.NAME }}-${{ env.VERSION }}-sources.jar
path: ./target/${{ env.NAME }}-${{ env.VERSION }}-sources.jar path: ./target/${{ env.NAME }}-${{ env.VERSION }}-sources.jar
- name: Archive Shaded Jar
uses: actions/upload-artifact@v3
with:
name: ${{ env.NAME }}-${{ env.VERSION }}-shaded.jar
path: ./target/${{ env.NAME }}-${{ env.VERSION }}-shaded.jar

@ -57,6 +57,12 @@ jobs:
name: ${{ env.NAME }}-${{ env.VERSION }}-sources.jar name: ${{ env.NAME }}-${{ env.VERSION }}-sources.jar
path: ./target/${{ env.NAME }}-${{ env.VERSION }}-sources.jar path: ./target/${{ env.NAME }}-${{ env.VERSION }}-sources.jar
- name: Archive Shaded Jar
uses: actions/upload-artifact@v3
with:
name: ${{ env.NAME }}-${{ env.VERSION }}-shaded.jar
path: ./target/${{ env.NAME }}-${{ env.VERSION }}-shaded.jar
- name: Create Release - name: Create Release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:

@ -144,9 +144,8 @@
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<!-- <outputFile>${project}-${version}-shaded</outputFile>-->
<shadedArtifactAttached>true</shadedArtifactAttached> <shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName> <!-- Any name that makes sense --> <shadedClassifierName>shaded</shadedClassifierName>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>

Loading…
Cancel
Save