Skip to content

Commit

Permalink
Upload standaloneExecutables jar
Browse files Browse the repository at this point in the history
In build.yaml, use Maven's -pl switch and ! to avoid building
standaloneExecutables and distribution on every push

In release.yaml, drop -Prelease from mvn command since we don't need
profiles anymore.  Add step to upload standaloneExecutables jar.
  • Loading branch information
tuxji committed Nov 3, 2020
1 parent 7f26947 commit 841b7b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
# TODO: The tests currently fail in Github Actions
run: |
mvn -version
mvn -B install -DskipTests
mvn -B install -DskipTests -pl '!standaloneExecutables,!distribution'
12 changes: 11 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Build SemTK release
run: |
mvn -version
mvn -B install -DskipTests -Prelease
mvn -B install -DskipTests
- name: Upload SemTK dist tarball
uses: actions/upload-release-asset@v1
Expand All @@ -30,3 +30,13 @@ jobs:
asset_path: distribution/target/semtk-opensource-dist.tar.gz
asset_name: semtk-opensource-${{ github.event.release.tag_name }}-dist.tar.gz
asset_content_type: application/gzip

- name: Upload SemTK fat standaloneExecutables jar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar
asset_name: semtk-opensource-${{ github.event.release.tag_name }}-standaloneExecutables.jar
asset_content_type: application/gzip

0 comments on commit 841b7b3

Please sign in to comment.