Skip to content

Commit

Permalink
Fix the missing fat JAR problem during the release procedure (#1479)
Browse files Browse the repository at this point in the history
### What's done:

 * Fixes #1478.
  • Loading branch information
0x6675636b796f75676974687562 authored Jul 27, 2022
1 parent 812406d commit ad66a04
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,16 @@ jobs:
{ "id": "gpg.passphrase", "passphrase": "${{ secrets.DIKTAT_GPG_PASS }}" },
{ "id": "kotlin-maven-plugin-tools", "username": "${{github.actor}}", "password": "${{ secrets.GITHUB_TOKEN }}" }
]
- name: Deploy artifacts
run: mvn -B clean deploy -Prelease --projects '!diktat-ruleset'
- name: Build diktat.jar
run: mvn -B package --projects diktat-ruleset
# Runs tests, incl. smoke tests (using a fat JAR built from the
# "diktat-ruleset" module). The fat JAR is also used later during the
# "upload-release-asset" step (see below).
- name: Run tests
run: mvn -B clean install
# "diktat-ruleset" is a module that creates a fat JAR, which is,
# obviously, never released. Since we *do need* this fat JAR in order to
# run smoke tests, we *skip tests entirely* in this step.
- name: Deploy artifacts (skipping the clean, test, and verify phases)
run: mvn -B deploy -Prelease --projects "!diktat-ruleset" -DskipTests=true
- name: Create Github Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit ad66a04

Please sign in to comment.