Skip to content

Commit

Permalink
Update arduino.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrGri authored Dec 6, 2023
1 parent 8b327d5 commit d88afea
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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


0 comments on commit d88afea

Please sign in to comment.