-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from TheDudeFromCI/libraries-in-releases
Releases now upload libraries.
- Loading branch information
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ on: | |
- ".github/**" | ||
pull_request: | ||
paths: | ||
- "*" | ||
- "**.java" | ||
- "pom.xml" | ||
- ".github/**" | ||
|
||
jobs: | ||
build: | ||
|
@@ -28,9 +30,8 @@ jobs: | |
${{ runner.os }}-maven- | ||
- name: Build with Maven | ||
uses: xlui/action-maven-cli/jdk8@master | ||
with: | ||
args: -B clean javadoc:jar test jacoco:report sonar:sonar | ||
run: | | ||
mvn -B clean javadoc:jar test jacoco:report sonar:sonar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
@@ -96,18 +97,25 @@ jobs: | |
- name: Create Zip Release | ||
run: | | ||
cp target/wraithengine-*.jar dist | ||
cd dist | ||
zip build * | ||
cd .. | ||
zip -j build target/wraithengine-*.jar | ||
zip -j lib target/lib/*.jar | ||
- name: Upload Release Zip | ||
id: upload-release-asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist/build.zip | ||
asset_path: ./build.zip | ||
asset_name: build_${{ steps.build_number.outputs.build_number }}.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload Libraries Zip | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./lib.zip | ||
asset_name: build_${{ steps.build_number.outputs.build_number }}_lib.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters