Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 60f59a4

Browse files
committed
ci: add uncompiled release asset
1 parent 9b88747 commit 60f59a4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ jobs:
4343
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }}
4444
body: ${{ steps.changelog_reader.outputs.changes }}
4545

46+
- name: ZIP uncompiled universalJavaApplicationStub
47+
run: |
48+
echo "Zipping uncompiled script..."
49+
zip --junk-paths universalJavaApplicationStub-uncompiled.zip src/universalJavaApplicationStub
50+
51+
- name: Upload release assets
52+
uses: actions/upload-release-asset@v1
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GH_API_PERSONAL_ACCESS_TOKEN }}
55+
with:
56+
upload_url: ${{ steps.create_draft_release.outputs.upload_url }}
57+
asset_name: universalJavaApplicationStub-v${{ env.RELEASE_VERSION }}-source.zip
58+
asset_path: ./universalJavaApplicationStub-uncompiled.zip
59+
asset_content_type: application/zip
60+
4661

4762
compile:
4863
name: Compile the stub on ${{ matrix.os }}
@@ -81,7 +96,7 @@ jobs:
8196
GITHUB_TOKEN: ${{ secrets.GH_API_PERSONAL_ACCESS_TOKEN }}
8297
with:
8398
upload_url: ${{ needs.draft_release.outputs.upload_url }}
84-
asset_name: universalJavaApplicationStub-${{ env.RELEASE_TAG }}-${{ matrix.os }}.zip
99+
asset_name: universalJavaApplicationStub-${{ env.RELEASE_TAG }}-binary-${{ matrix.os }}.zip
85100
asset_path: ./universalJavaApplicationStub-${{ matrix.os }}.zip
86101
asset_content_type: application/zip
87102

0 commit comments

Comments
 (0)