-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use jar url instead of file path on lambda deploy
- Loading branch information
Walid Lezzar
committed
Mar 22, 2020
1 parent
78453a8
commit ad52c59
Showing
3 changed files
with
69 additions
and
4 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 |
---|---|---|
|
@@ -6,6 +6,57 @@ on: | |
|
||
jobs: | ||
|
||
publish-zoe-core-jar: | ||
name: Publis zoe core jar | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '100' | ||
|
||
- name: set upload url | ||
id: fetch_release_data | ||
run: | | ||
UPLOAD_URL=$(jq -r '.release.upload_url' ${GITHUB_EVENT_PATH}) | ||
echo "::set-output name=upload_url::$UPLOAD_URL" | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 11 | ||
java-package: jdk | ||
architecture: x64 | ||
|
||
- name: Build | ||
run: ./gradlew clean zoe-core:shadowJar | ||
|
||
- name: Package | ||
id: package | ||
run: | | ||
./dev/scripts/packages-without-runtime.sh | ||
# retrieve jar | ||
zoe_jar_path=$(ls -t zoe-core/build/libs/zoe-core-*.jar | head -n 1) | ||
# ensure jar is generated | ||
[[ -z "${zoe_jar_path}" ]] && \ | ||
{ echo "zoe core jar not found : ${zoe_jar_path}"; exit 1; } | ||
echo "::set-output name=zoe_jar_path::${zoe_jar_path}" | ||
echo "::set-output name=zoe_jar_name::$(basename ${zoe_jar_path})" | ||
- name: Upload zip package | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.fetch_release_data.outputs.upload_url }} | ||
asset_path: ${{ steps.package.outputs.zoe_jar_path }} | ||
asset_name: ${{ steps.package.outputs.zoe_jar_name }} | ||
asset_content_type: application/zip | ||
|
||
release-runtimeless: | ||
name: Publish packages without runtime | ||
|
||
|
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
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