From d88afea6fd9aa1ccda03d9055fd69a90367315c7 Mon Sep 17 00:00:00 2001 From: ChrGri Date: Wed, 6 Dec 2023 15:10:45 +0100 Subject: [PATCH] Update arduino.yml --- .github/workflows/arduino.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index bc53f1d3..41a770b9 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -87,6 +87,12 @@ jobs: - uses: montudor/action-zip@v1 with: args: zip -qq -r ./Arduino/Esp32/bin/esp32_0.zip ./Arduino/Esp32/bin/ + # zip plugin binaries + - uses: montudor/action-zip@v1 + with: + args: zip -qq -r ./SimHubPlugin/bin/SimHub_plugin.zip ./SimHubPlugin/bin/ + + # create a release # see https://www.youtube.com/watch?v=_ueJ3LrRqPU @@ -100,7 +106,8 @@ jobs: release_name: Release ${{ github.run_number }} # upload release asset - - name: Upload Release Asset + # Arduino binaries + - name: Upload ESP release assets id: upload-release-asset uses: actions/upload-release-asset@v1 env: @@ -110,5 +117,16 @@ jobs: asset_path: ./Arduino/Esp32/bin/esp32_0.zip asset_name: esp32_0.zip asset_content_type: application/zip + # SimHub plugin binaries + - name: Upload SimHub release assets + id: upload-release-asset-plugin + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create-new-release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./SimHubPlugin/bin/SimHub_plugin.zip + asset_name: SimHub_plugin.zip + asset_content_type: application/zip