Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tmart234 committed Nov 20, 2023
1 parent 03bb7e9 commit 086f464
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ jobs:
release_name: Release ${{ env.NEW_TAG }}
draft: false
prerelease: false

- name: Archive Model Package
run: zip -r lstm_model_${{ env.NEW_TAG }}.mlpackage.zip ./model/lstm_model_${{ env.NEW_TAG }}.mlpackage

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./model/lstm_model_${{ env.NEW_TAG }}.mlpackage
asset_name: lstm_model_${{ env.NEW_TAG }}.mlpackage
asset_content_type: application/octet-stream
asset_path: ./lstm_model_${{ env.NEW_TAG }}.mlpackage.zip
asset_name: lstm_model_${{ env.NEW_TAG }}.mlpackage.zip
asset_content_type: application/zip

0 comments on commit 086f464

Please sign in to comment.