Skip to content

Commit

Permalink
add aar file to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Voigt committed Feb 20, 2024
1 parent dbe2b2c commit c937364
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,38 @@ jobs:
draft: false
prerelease: false

- name: Download artifact
- name: Download aar artifact
uses: actions/download-artifact@v3
with:
name: cumulocity-client-kotlin-jar
name: cumulocity-client-kotlin-aar
path: artifacts

- name: show downloaded content
run: |
ls -lsa artifacts/
- name: Upload release asset
- name: Upload aar to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: "cumulocity-clients-kotlin-release.aar"
asset_path: artifacts/cumulocity-clients-kotlin-release.aar
asset_content_type: application/zip

- name: Download jar artifact
uses: actions/download-artifact@v3
with:
name: cumulocity-client-kotlin-jar
path: artifacts

- name: Upload jar to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: "cumulocitycorelibrary-${{ env.marketing_build_version }}.jar"
asset_path: artifacts/cumulocitycorelibrary-${{ env.marketing_build_version }}.jar
asset_content_type: application/zip
asset_content_type: application/zip

0 comments on commit c937364

Please sign in to comment.